ALTER PROCEDURE Ins2(@id INT,@name NVARCHAR(50)) AS BEGIN BEGIN try INSERT INTO abc (id, name) VALUES (@id, @name) END try BEGIN catch INSERT INTO exception VALUES (Error_number(), Error_severity(), Error_state(), Error_procedure(), Error_line(), Error_message(), Getdate()) SELECT * FROM exception END catch END
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)