Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Trigger

Author  Topic 

kprasadreddy
Starting Member

41 Posts

Posted - 2007-03-13 : 12:47:19
Can have a trigger that is fired after update to a column in the table?

I have a table DMT010_USER and want to update another table xxx only after update to the FIRST_NAME field in DMT010_USER.

Is this possible?

Thanks,

Prasad

snSQL
Master Smack Fu Yak Hacker

1837 Posts

Posted - 2007-03-13 : 14:03:18
That's one of the main uses of triggers and is explained with examples in the CREATE TRIGGER documentation in Books Online. You can specifically test for which column/s were updated with the UPDATE or COLUMNS_UPDATED functions - also fully explained in the CREATE TRIGGER documentation in Books Online.
Go to Top of Page
   

- Advertisement -