Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Datetime size
Message
De
20/07/2009 11:21:20
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Datetime size
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01413375
Message ID:
01413375
Vues:
114
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?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform