Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameterized SQL PassThrough Question
Message
From
10/02/2000 11:10:39
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00329981
Message ID:
00330059
Views:
29
Since you send a string to SQLServer, I don't see why you could not do this:
mcproj="'000609','000172','001113'"

? mcproj
? SQLEXEC(1,"SELECT *;
 FROM ZAKI.PROJ Proj;
 WHERE {fn LEFT(Proj.PROJ_ID,6)} IN (" + mcproj + ") AND {fn LENGTH(Proj.PROJ_ID)}=10;
 ORDER BY Proj.PROJ_ID")
>Can anyone tell me why the first SQL statement returns 17 records and the second returns none? Both SQLEXEC()'s return 1 so there are no errors in either SELECT.
Sylvain Demers
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform