i want to handle error if any table is deleted from the database
situation is like –
ALTER procedure ABC as
begin tran tansinsert
insert into table1 values (1,2,3)
if @@error <> 0
begin
rollback tran tansinsert
end
else
begin
commit tran tansinsert
end
if i am running this proc and table ‘table1 ‘ was not in database than how i will get error message
One way