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 2000 Forums
 SQL Server Development (2000)
 Trigger for update

Author  Topic 

noamg
Posting Yak Master

215 Posts

Posted - 2004-01-21 : 05:48:02
Hi,

how to know which columns were change in a trigger for update ?

thanks

Noam Graizer

nr
SQLTeam MVY

12543 Posts

Posted - 2004-01-21 : 05:59:05
See if update in crate trigger - there is also a bitmap.
To find if the value is changed you have to compare the inserted and deleted values.

see
http://www.nigelrivett.net/Triggers_1_A_beginners_guide.html
http://www.nigelrivett.net/Triggers_2_Creating_Audit_Trails.html



==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -