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)
 Do triggers lock the table?

Author  Topic 

psystems
Starting Member

8 Posts

Posted - 2005-08-11 : 17:18:40
Hi,

I have a trigger set on a table "for update" and then based on criteria it will execute a stored procedure.

Does the trigger "lock" the table until it is finished with its tasks?


Thank you.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2005-08-11 : 17:52:41
The transaction will not complete until the triggers have completed. So whatever locking is used during the transaction will be there until after the triggers are done.

Tara
Go to Top of Page
   

- Advertisement -