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)
 Update Triggers

Author  Topic 

clojinted
Starting Member

1 Post

Posted - 2004-06-24 : 04:30:47
Hey,
I'm writing a trigger in SQL Server 7. I have a department column and when it gets updated I want to write both the old and new department names to another table. I'm wondering how you go about refering to the old and new names?
Thanks
G

nr
SQLTeam MVY

12543 Posts

Posted - 2004-06-24 : 04:39:16
See inserted and deleted tables
and

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 -