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
 Transact-SQL (2000)
 Trigger question

Author  Topic 

BusteR
Starting Member

17 Posts

Posted - 2005-07-10 : 18:03:31
Hi

Is it possible to create a trigger, that would intercept the delete command and instead of deleting a row, it would change value in one of the columns?
I want it to work with 'on delete cascade'.

Best regards

nr
SQLTeam MVY

12543 Posts

Posted - 2005-07-10 : 19:20:26
Have a look at instead of triggers.
http://www.mindsdoor.net/SQLTriggers/Triggers_1_A_beginners_guide.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 -