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:
01323355
Vues:
16
This message has been marked as the solution to the initial question of the thread.
You separate parameters with comma. Also you can use SPT parameters.
'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?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform