Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLEXEC command
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00515140
Message ID:
00515681
Views:
12
Hi!

>Mark:
> If I have the following statement:
>
>lcSQL = "Select clClientID from CLIENTTYPE where clClientID = '" + lcID + "'"

Try:
lcSQL = "Select clClientID from CLIENTTYPE where clClientID = ?m.client_id"

Than run the rest code that you described, it should run correct.

>
>can I then use this command:
>
>sqlexec(gnconn,lcSql,"mycursor")
>
>when I do that it returns empty set, but if put the sql statement in SQLEXEC then it works. My extact codes are:
>m.client_id = TEST.CLIENT
>clSQL = init_val.sql_str
>sqlexec(gnconn,lcSql,"mycursor")
>I tried to put alltrim around init_val.sql_str, it did not work. I copied the content from init_val.sql_str and pasted in the SQLEXEC. It works. any idea on that? thanks
>sherry
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform