It ain't work that way
@return_status
Is an optional integer variable that stores the return status of a module. This variable must be declared in the batch, stored procedure, or function before it is used in an EXECUTE statement.
When used to invoke a scalar-valued user-defined function, the @return_status variable can be of any scalar data type.
Main Topics
Browse All Topics





by: HwkrangerPosted on 2009-07-17 at 12:17:07ID: 24881875
because it returns MESSAGES and not rows.
Good question though.