Creating a trigger on SQL Server 2008 R2 to catch a record update?

In a trigger, you get the DELETED and INSERTED tables, there is no UPDATED so replace FROM UPDATED with FROM INSERTED.

There is no UPDATED in SQL Server; just inserted and deleted. Also, it makes sense to add IF @@ROWCOUNT = 0 RETURN in the very beginning of triger's body. When UPDATE takes place, both inserted and deleted tables are not empty.

You may add the following code to make sure you handle UPDATE, not insert/delete.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions