Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MSDE, SQL Pass thru
Message
 
 
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:
00368174
Views:
23
Try:
? SQLEXEC(lnHandle,"INSERT INTO MyTable (Field1) VALUES (" + transform(lnVar)+")")


>? 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?
>
>VFP documentation is rather sketchy, or non existing, on this issue.
>
>Does anybody know the solution.
>
>Regards
>
>Peter
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform