Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert DateTime to a string to send to SQL serv
Message
From
10/09/2010 14:02:38
 
 
To
05/09/2010 21:20:42
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01480183
Message ID:
01480783
Views:
52
>I use this successfully with SQL2005 and SQL2008:
>
>
>...
>lnRet = sqlexec(lnHandle,textmerge([update dFunkyTable set tLastTimeStamped = '<<TTOC(DATETIME(),3>>'])
>
>Hank
>
Have you tried just sending DATETIME() as the parameter?
=sqlexec(lnHandle, "UPDATE mytable SET dtField = ?DATETIME() WHERE cid = ?myValue")
works with MySql. I don't have any of the SQL Server versions to test with and am curious if it works there as well.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform