Hello, I have created a couple of triggers in many different tables. is there a way to run a comman in sql window to see a list of all the triggers that I created, or telling me which tables that triggers are located.
Where can I find all the triggers in my database (reply)
Hi,
In sysobjects you can find most of all objects
So if youwant o see for example the triggers on the statstables table try this query !!!
select otabl.name , otr.name
from sysobjects as otabl
inner join sysobjects as otr on otabl.id = otr.parent_obj
where otr.type = 'tr' and otabl.name = 'statstables'
I think it can help you
Best regards
Axel
------------
Ali Alhussein at 3/21/01 9:20:21 AM
Hello, I have created a couple of triggers in many different tables. is there a way to run a comman in sql window to see a list of all the triggers that I created, or telling me which tables that triggers are located.
Hello, I have created a couple of triggers in many different tables. is there a way to run a comman in sql window to see a list of all the triggers that I created, or telling me which tables that triggers are located.
In sysobjects you can find most of all objects
So if youwant o see for example the triggers on the statstables table try this query !!!
select otabl.name , otr.name
from sysobjects as otabl
inner join sysobjects as otr on otabl.id = otr.parent_obj
where otr.type = 'tr' and otabl.name = 'statstables'
I think it can help you
Best regards
Axel
------------
Ali Alhussein at 3/21/01 9:20:21 AM
Hello, I have created a couple of triggers in many different tables. is there a way to run a comman in sql window to see a list of all the triggers that I created, or telling me which tables that triggers are located.
Hello, I have created a couple of triggers in many different tables. is there a way to run a comman in sql window to see a list of all the triggers that I created, or telling me which tables that triggers are located.
Bookmarks