Hi, all
In nested SP, I use raiserror send back the customized error message with different return value (eg: 1, 2, 11, 12, 100 ...). I want to have another main SP which will call this sub-SP, inside I have a loop excute this SP.
How can the main SP get error message from nested SP so that I can insert those return error message to a table? Is it possible? I know one way is to add additional output parameter (varchar) to store the error message instead of raiserror...
Thanks,