Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLEXEC, datetime()
Message
From
17/08/2013 15:29:31
 
 
To
17/08/2013 13:53:37
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01580683
Message ID:
01580706
Views:
36
>>>>How can I insert current datetime in my sql table via VFP ?
>>>>
>>>>year, month, day, h, m,s
>>>>
>>>>Please help me insert date in line below:
>>>>
>>>>cSQL = "UPDATE reembolso set reg_correios= ?m.reg_correios, env_ect = 1 where code = ?m.code, datetime = "
>>>>
>>>>asa=SQLEXEC(lnHandle,cSQL )
>>>>
>>>>I am not sure if I have to convert it.
>>>>
>>>>Moises
>>>
>>>ltTime = datetime()
>>>
>>>cSQL = "UPDATE reembolso set reg_correios= ?m.reg_correios, env_ect = 1 where code = ?m.code, datetime = ?m.ltTime" 
>>>
>>>asa=SQLEXEC(lnHandle,cSQL )
>>That's slick, Tore, but doesn't that add the time to the string and mess up the comparison?
>
>Well, you question was "How can I insert current datetime"...

That was the question but the example he gave us is a comparison.
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Previous
Reply
Map
View

Click here to load this message in the networking platform