Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert date in sql server
Message
 
To
12/04/2006 13:18:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01113026
Message ID:
01113281
Views:
16
Hi Robert?

Why don't you use bind parameters?
LOCAL ldDate,lyCurrency, luRate
ldDate=DATE()
lyCurrency=$25641
luRate=.NULL.

=SQLEXEC(handle, "insert into table test (tr_date,tr_currency,tr_rate) values (?ldDate,?lyCurrency,?luRate)")
MartinJ

>i want to do a insert in a table with sqlexec
>
>table test
>
>field : tr_date,tr_currency
>
>
>i got an error when i do that
>
>"insert into table test (tr_date,tr_currency,tr_rate) values (" + date()+",'"+l_cur+"')"
>
>
>and i know is about the date()
>
>
>how can i do
>
>
>
>thanks
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Reply
Map
View

Click here to load this message in the networking platform