Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Datetime size
Message
From
20/07/2009 20:28:27
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01413375
Message ID:
01413483
Views:
44
>>From what I knew and what I just re-read, the datetime field in a SQL server table has the same structure as in VFP - 4 byte integer to represent the date, 4 bytes integer for the milliseconds. The difference is in VFP's use of Julian day number where TSQL uses 1900-01-01 as day zero. Both have the same limitation - the values go between First Gregorian Date, to the Y10K Bug Day (9999-12-31). Both can store values outside of the range, but there's no code to display them, and the logic wouldn't really work before the FGD (which wasn't at the same time everywhere, so there were not just timezones, there were datezones).
>>
>>My question, if anyone knows - why does SqlColumns() say that buffer_length=16 for datetime fields, if they occupy 8 bytes?
>
>Hi Dragan,
>
>Check this link
>
>http://blogs.lessthandot.com/index.php/DataMgmt/DataDesign/how-are-dates-stored-in-sql-server

Just confirms what I said above (and what BOL say) - and yet ODBC thinks that's 16 bytes.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform