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.
| 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? ThanksG |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2004-06-24 : 04:39:16
|
| See inserted and deleted tablesandhttp://www.nigelrivett.net/Triggers_1_A_beginners_guide.htmlhttp://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. |
 |
|
|
|
|
|