I'm working with a client who is using a Pervasive SQL database, and trying to understand how their database is structured. The problem is that my client isn't aware of how the database was setup, and had been relying separate vendor who created the database. Unfortunately, I'm unable to talk to that vendor - so, I have to try and figure things out "on my own".
My first step is to get a count of all entries (from all tables) that were made within the last 10 years. I do see multiple tables with a date
column. However, the column type for those seem to be CHAR(6)
, and the value is something like ;30304
, ;31216
, ;50425
, ...
I've never seen date stored like that, and I'm not sure what to make of it. I remember reading from somewhere that Pervasive stores dates as number of days since 01/01/0001
. If that were to be the case, then ;30304
would imply December 21, 0083
. So, that doesn't seem right.
I would greatly appreciate any help/advice here. Also, I've noticed certain date values are stored starting with ":" instead of ";" - what does this mean? I can't seem to find this online.