Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP8/9 diff using SQL Server 2K
Message
De
08/12/2005 09:43:05
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01076128
Message ID:
01076154
Vues:
20
>>Hi all,
>>
>>I am creating a text string that I pass to SqlExec() to a SqlServer2000 database. This code runs fine when ran interactively from VFP8 but causes an invalid datetime string error when ran from VFP9. I run both versions of VFP without any bootup settings, meaning I am using the default VFP settings.
>>
>>
>>"CONVERT(datetime,'" + ttoc(datetime()) + "',101)" - works in V8 not in V9
>>"CONVERT(datetime,N'" + ttoc(datetime()) + "',101)" - works in V8 not in V9
>>
>
>What TTOC(DATETIME()) returns in each version?

I checked and I need to use TTOC(datetime(),2) for it to work in both version of VFP.
ramil
~~ learning to stand still
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform