I have a procedure where I insert values into my table.
declare @fName varchar(50),@lName varchar(50),@check tinyint
INSERT INTO myTbl(fName,lName) values(@fName
In SQL-Sever you can use OUTPUT clause to check if values are inserted successfully. By following query
declare @fName varchar(50),@lName varchar(50)
INSERT INTO myTbl(fName,lName) OUTPUT inserted.* values(@fName,@lName) ;
IF the values are inserted it will show output of inserted values. You can also store these values into new table.