June 14, 2008 at 1:08 am
Hi,
Could any one tell me how I can list all trigger in a database?
With regards
Sunil
June 14, 2008 at 4:14 am
select * from sysobjects WHERE XTYPE ='TR'
June 14, 2008 at 6:05 am
to see also the concerned table:
SELECT ta.name AS
, tr.name AS [trigger name]
FROM dbo.sysobjects tr
INNER JOIN dbo.sysobjects ta ON tr.parent_obj = ta.id
WHERE tr.xtype = 'TR'
ORDER BY 1, 2
June 14, 2008 at 10:43 pm
Select * from sys.triggers
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply