Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MSDE, SQL Pass thru
Message
From
10/05/2000 11:56:07
 
 
To
10/05/2000 11:45:55
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00368170
Message ID:
00368180
Views:
29
>? SQLEXEC(lnHandle,"INSERT INTO MyTable (Field1) VALUES (10)") works fine, but
>
>lnVar=10
>? SQLEXEC(lnHandle,"INSERT INTO MyTable (Field1) VALUES (lnVar)")
>
>does not.
>
>I guess it´s because the server does not know that lnVar=10?
>

your right, you need to evaluate the variable on the client, not pass the variable name to the server:

? SQLEXEC(lnHandle,"INSERT INTO MyTable (Field1) VALUES (" + TRANSFORM(lnVar) + ")")
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform