Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting exact datetime form sql database table
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01018497
Message ID:
01018498
Vues:
12
Hi Hans,


You must convert SQL datetime to string with ms:
CONVERT(char, datetime_field, 21)

MartinJ

>Hey all,
>
>I've got an sql table containing a datetime field yyyy-mm-dd hh:mi:ss.mmm. When I do a query form VFP I get the datetime in format yyyy-mm-dd hh:mi:ss but now I realy need to get the milliseconds too. Is there a way ??
>
>Greetz,
>Hans
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform