Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Syntax for reading a sql server stored procedure return
Message
De
20/03/2010 17:52:43
 
 
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:
01455878
Vues:
47
>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.
>>

Thank you very much Sergey. I'll try and let you know (but think you already know :))

Joaquim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform