Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax for reading a sql server stored procedure return
Message
 
 
To
20/03/2010 11:42:40
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01455835
Message ID:
01455845
Views:
65
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform