Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP8/9 diff using SQL Server 2K
Message
 
 
À
08/12/2005 10:57:19
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:
01076202
Vues:
25
>>>
>>>Hmm. I have VFP8 SP1 and TTOC(,2) is a valid option.
>>
>>Right, I was thinking about TTOC(,3). Anyway, how TTOC(,2) will help you if it returns time part only?
>
>You're right. I didnt check that. I will have to dig which one converts properly to SQL Server datetime. Is it better to use CAST instead of CONVERT? I havent tried converting the data using CAST.

Try
[CAST( '] + TRANSFORM(TTOC(DATETIME(),1), "@R 9999-99-99 99:99:99") + [' AS datetime])
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform