Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Datetime fields in MSSQL as Date in VFP
Message
 
 
À
07/12/2009 23:50:38
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01437969
Message ID:
01438005
Vues:
40
>Hmm, I could have sworn there was a date part to datepart but I just looked it in my help and there is not. I also looked at DATEFORMAT( now(), 'Mm/dd/yyyy' ) as ddate but that value is returned as a char(). I do most of my work with a Sybase database that is tsql compatible but there are some differences. Not sure if dateformat() is available in MSSql.
>

No, don't remember this function. You can use convert to create varchar representation and you can get rid of time portion, but that's about it. In SQL Server 2008 you have two separate types: TIME and DATE. I don't know if it's easy to use them in VFP - I recall there were some problems...
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform