In SqlServer Management Studio when I execute stored procedure and it throws exception it also returns output values.
I can’t figure how to get that values from C# .NET – when exception is thrown execution is stopped and output values isn’t populated.
I’m pretty sure you can use
RAISERROR– this return specified information to the application. This might not be an ideal practice, mind you; and also might be too late for you if you don’t have control of the stored procedure to implement this.