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)
 stuck on cascading delete, can u help me please

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-05-05 : 14:52:08
Jerome writes "Jerome writes "hello,
i read one of your answers on how to do cascading delete using triggers here http://www.4guysfromrolla.com/webtech/sqlguru/q061400-1.shtml
but the thing is... urmmm im still stuck.
ok say i was to create a trigger that would delete an employee and ther details based on what ID number I was to input.... how would I call the trigger in an sql statment?
(hope i make sense)

thank you in advance for your help""

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-05-05 : 14:57:29
You don't call triggers. Triggers fire when DML occurs. So if you've got a delete trigger, the trigger fires automatically when a delete occurs.

Tara
Go to Top of Page
   

- Advertisement -