all groups > sql server programming > september 2003 >
You're in the

sql server programming

group:

Finding the affected row from trigger



Finding the affected row from trigger girishpal NO[at]SPAM hotmail.com
9/7/2003 11:47:54 PM
sql server programming: I have a trigger on delete. I want to know the primary key coloumn of
row being deleted.
Re: Finding the affected row from trigger Tibor Karaszi
9/8/2003 9:10:47 AM
Use the virtual DELETED table. Note that the triggers doesn't fire per row, it is per statement.
This means that you can have several rows in the deleted table.

--
Tibor Karaszi, SQL Server MVP
Archive at: http://groups.google.com/groups?oi=djq&as ugroup=microsoft.public.sqlserver


[quoted text, click to view]

AddThis Social Bookmark Button