Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Server DATE fields show as numbers in VFP
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Maintenance bases de données
Versions des environnements
SQL Server:
SQL Server 2012
OS:
Windows Server 2008 R2
Divers
Thread ID:
01642533
Message ID:
01642540
Vues:
46
>>Hi
>>When i connect to a SQL Server DB, either with the Database Explorer or through sqlstringconnect, all the DATE fields figure in VFP as numbers.
>>For instance, March 18, 2005 comes as 9051840
>>What did i do wrong?
>>
>>Thanks
>>Jaime
>
>What driver you're using to get them from SQL Server (e.g. show your connection string).
>
>I believe some drivers do not recognize new DATE fields at all.
>
>Would you be able to use datetime column instead or you must use DATE?
>
>Can you search VFP forum for that problem (it was discussed in the past but I don't recall exact solution)?

Hey Naomi :-)
Thanks for your fast reply.
Using the following connection string:
Handle = SQLStringConnect ( "driver={SQL Server};server=myServer;database=myDB;pwd=myPass;uid=myUser;")
I also am thinking it's a driver issue, hence my coming here, to see if i can tweak the current one or use a different one.
I cannot modify the SQL DB it's an external application...

Jaime
Why do programs stop working correctly as soon as you leave the Fox?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform