You can alter your procedure for error handling. Look at this, sample picked up from BOL.CREATE PROCEDURE add_author @au_id varchar(11),@au_lname varchar(40),@au_fname varchar(20),@phone char(12),@address varchar(40) = NULL,@city varchar(20) = NULL,@state char(2) = NULL,@zip char(5) = NULL,@contract bit = NULLAS-- Execute the INSERT statement.INSERT INTO authors(au_id, au_lname, au_fname, phone, address, city, state, zip, contract) values(@au_id,@au_lname,@au_fname,@phone,@address, @city,@state,@zip,@contract)-- Test the error value.IF @@ERROR <> 0 BEGIN -- Return 99 to the calling program to indicate failure. PRINT "An error occurred loading the new author information" RETURN(99)ENDELSEBEGIN -- Return 0 to the calling program to indicate success. PRINT "The new author information has been loaded" RETURN(0)ENDGO