Hi,
I have these two sprocs.
---------
CREATE PROCEDURE [dbo].[InnerSproc]
AS
BEGIN
RAISERROR ('ErrorMessage', -1, -1)
END
---------
CREATE PROCEDURE [dbo].[OuterSproc]
AS
BEGIN
BEGIN TRY
EXEC InnerSproc
PRINT 0
END TRY
BEGIN CATCH
PRINT -1
END CATCH
END
----------
If I execute the outer sproc, EXEC OuterSproc, shouldn't it print -1? Why is it printing 0?
Thanks