Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2001-02-14 : 12:10:10
|
Paul writes "Ok, simply calling a stored procedure from another stored procedure is rather trivial, but I am trying to return the result of the stored procedure as a row, with the input of that stored procedure as the result of one of those rows!
Example, I have
SP1 which takes an argument for input and returns a value.
My SQL wants the input of that stored procedure to be the output of one of the rows. SP1 is a long complicated SP.
SELECT TBL.A, TBL.B, TBL.C, "MyRow" = ( EXEC SP1 TBL.A ) FROM Table TBL
I get all sorts of errors when I try to do it like this... is there a better way to do it?" |
|
|
|
|
|