February 19, 2009 at 12:52 am
hi,
I want know all the Triggers that exist in an instance of SQL Server 2000.
What will be the script to find all Triggers in all databases in one shot?
February 19, 2009 at 1:01 am
Use yourdbname
SELECT * FROM sysobjects WHERE xtype = 'TR'
February 19, 2009 at 1:02 am
EXEC sp_msforeachdb 'select * from ?..sysobjects where xtype=''tr'''
or
http://sqlblogcasts.com/blogs/madhivanan/archive/2008/05/13/simulating-undocumented-procedures.aspx
Failing to plan is Planning to fail
February 19, 2009 at 1:07 am
Thanks a lot... Learnt a completely new stored procedure....
February 20, 2009 at 4:46 am
amartha_dutta (2/19/2009)
Thanks a lot... Learnt a completely new stored procedure....
You are welcome 🙂
Failing to plan is Planning to fail
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply