Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pass more than one parameter to SQL stored proc?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01323354
Message ID:
01323356
Views:
12
...thanks Sergey...that's what I figured, but wanted to be sure...

>You separate parameters with comma or use SPT paramers.
>
>'exec ' + lcStoredProcedure + ' ' + lcParameter_Value + ',' + lcParameter2_Value
>---
>'exec ' + lcStoredProcedure + ' ?lcParameter_Value, ?lcParameter2_Value'
>
>
>
>>I have some code that works just fine like this:
>>
>>lcParameter_Value = 'MyParam'
>>lcStoredProcedure = 'MySPname'
>>lcCommand = ALLTRIM('exec ' + lcStoredProcedure + ' ' + lcParameter_Value )
>>lnSQLEXECResult = SQLEXEC(lnConnectionHandle , lcCommand, 'ResultSet')
>>
>>
>>....Now I need to pass more than one parameter to the stored procedure. Anyone know how I can do that?
ICQ 10556 (ya), 254117
Previous
Reply
Map
View

Click here to load this message in the networking platform