question

Naren avatar image
Naren asked

How to know what are the tables have triggers from database?

How to know what are the tables have triggers from database?
sql-server-2005triggerdba
10 |1200 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Kev Riley avatar image
Kev Riley answered
You'll need to look in either [`sys.objects`][1] `where type = 'TR'` and get the `parent_object_id` or [`sys.triggers`][2] and get the `parent_id` [1]: http://msdn.microsoft.com/en-us/library/ms190324(v=SQL.90).aspx [2]: http://msdn.microsoft.com/en-us/library/ms188746(v=SQL.90).aspx
10 |1200 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

salum avatar image
salum answered
you can find the trigger details in sys.triggers . to determining dependencies for a specific trigger check sys.sql_expression_dependencies system catalog
10 |1200 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.