Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pass more than one parameter to SQL stored proc?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01323354
Message ID:
01323356
Vues:
13
...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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform