Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Call a procedure from another SQL procedure...
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00950211
Message ID:
00950213
Views:
13
>I have a SQL stored procedure that accepts one parameter and returns one record with one field. I use it from VFP and it works great. I need to call this procedure from another SQL procedure. How do you do this since I’m not using a return in the 1st procedure? Can you give me an example?

Mike,

It would be better to return that value in an output parameter. It's easy to retrieve in VFP and in another stored procedure. See Re: Can stored procedures return values? Message #876903 for sample code. Call from VFP can be simplified, if you don't need stored procedure return value.
lnResult = SQLEXEC(lnConn ,[EXEC Proc_test 1,2, ?@lcStr])
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform