Hello, inside of my SP i want to execute another SP, something like:
EXEC
[dbo].[Forum_DeleteBoard] @.BoardID= @.DelBoardIDthis function Forum_DeleteBoard returs one row with 3 columns as a table, how do i get the first column of that table into a variable so i can check if it was ok or not
(it returns just one row with 3 columns).
Columns it returns:
QResult , Threads , Answers
SELECT @.isok = QResult FROM EXEC [dbo].[Forum_DeleteBoard] @.BoardID= @.DelBoardID ?
or how do you get it?
Patrick
you can try to do it by creating temp table and next by do insert from your stored procedure into this temp table. Temp table have to have the same layout as returned table. and you can select value you need from this table.
If you can modify your second procedure try to modify it to return output parameters instead of table result set. It will be simple and much faster.
You can find information about both solutions in SQL help, but if you have a problem with it just post again.
Thanks
No comments:
Post a Comment