DECLARE	@returnValue		INT,
		@ErrorCode		INT

EXEC @returnValue = dbo.uspUserSP
SET @ErrorCode = @@ERROR;

IF (@ErrorCode <> 0 OR @returnValue <> 0)
BEGIN
	-- Error Handling
	RAISERROR('Process Failed, ERROR CODE:%d',16,1,@ErrorCode);
END
Last modified: September 17, 2019

Author

Comments

Write a Reply or Comment