Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL statement with datetime
Message
From
31/03/2001 16:16:05
 
 
To
31/03/2001 11:23:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00490601
Message ID:
00490642
Views:
8
>I am trying to pass a datetime in my SQL INSERT statement that I'm building using VBscript in an .asp page to a VFP free table. Has anyone been susccessful in passing a datetime via an INSERT..? My SQL is "INSERT INTO company (datetime,...) VALUES("",...)". Within the "" I'm putting the results of the NOW function. The column in my VFP table is a datetime type. I can pass the datetime using the commmand.parameter... of ADO.
>
Just a SWAG, but have you tried formatting the result in the VFP StrictDate format, e.g.
{^2001-03-31 13:12:06}
Note that you probably don't want that enclosed in quotes.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform