How to reference the parameter from from iSQl to SQL Store Procedure ?
I want to pass value back from my store procedure to a variable in xcode.
Any idea to help me?
1
vote
1 comment
-
Adminmobile[foo]
(MobileFoo, MobileFoo)
commented
Assuming your stored procedure already has an appropriate output parameter, you can then just SELECT that after executing it, for example:
DECLARE @someParam varchar(100)
EXEC myProcedure, @myProcOutputParam=@someParam OUTPUT
SELECT @someParamYou can then retrieve the result of the select statement as normal. (Though it may not be the first resultSet, if I remember correctly - you might have to skip over an empty one first.
Thanks,
Rob
mobile[foo]