I'm trying to create a Trigger that will execute when a row in a certain table is deleted. It will ever only be one row at a time, and I need the trigger to determine which row it is (by its primary key).
So I am thinking an INSTEAD OF trigger that will grab the PK value, perform the trigger task, then delete it. Is there a way to determine which row was supposed to be deleted (like @@IDENTITY etc. for INSERTS)?
So I am thinking an INSTEAD OF trigger that will grab the PK value, perform the trigger task, then delete it. Is there a way to determine which row was supposed to be deleted (like @@IDENTITY etc. for INSERTS)?