Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Syntax for reading a sql server stored procedure return
Message
 
 
À
20/03/2010 11:42:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01455835
Message ID:
01455845
Vues:
66
See Re: Can stored procedures return values? Message #876903.
In case of SQLEXEC() reporting an error you should use AERROR() function to get detailed info about it.
You get the error because positional parameters cannot be used after named have been used.
lcInParam = "123" 
lcOuParam = ""
= Sqlexec(sqlcon, "EXEC StoredProcedurename @InParam = ?lcInParam, @OuParam=?@lcOuParam")
>
>Can somebody help me with an syntax example of how to read a return value from a SQL Server stored procedure in VFP, using SQLExec?
>
>IS something like:
>
>= Sqlexec(sqlcon, "EXEC StoredProcedurename @InParam = 123", @OuParam)
>wait window OutParam
>
>With the above code, sqlexec always returns -1.
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform