x

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

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

more ▼

asked Dec 04, 2011 at 06:23 AM in Default

avatar image

Naren
27 17 18 20

(comments are locked)
10|1200 characters needed characters left

2 answers: sort voted first

You'll need to look in either `sys.objects` where type = 'TR' and get the parent_object_id

or `sys.triggers` and get the parent_id

more ▼

answered Dec 04, 2011 at 10:39 AM

avatar image

Kev Riley ♦♦
63.8k 48 61 81

(comments are locked)
10|1200 characters needed characters left

you can find the trigger details in sys.triggers . to determining dependencies for a specific trigger check sys.sql_expression_dependencies system catalog

more ▼

answered Dec 04, 2011 at 10:40 AM

avatar image

salum
213 2 2

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x2016
x139
x108

asked: Dec 04, 2011 at 06:23 AM

Seen: 1096 times

Last Updated: Dec 04, 2011 at 11:53 AM

Copyright 2016 Redgate Software. Privacy Policy