List all triggers in MS-SQL database
Title says it all. Sql statement to enumerate all triggers in a MS-SQL instance.
SELECT b.[Name] + ‘.’ + a.[Name] as TriggerName
FROM sysobjects a JOIN
sysobjects b ON a.Parent_Obj = b.ID
WHERE a.xtype = ‘TR’
Meaning of sysobject.xtype values
D : ?
F : foreign keys
FN : user defined [...]
I am a .NET programmer first and foremost. But in my spare time I like to play around with PHP, Erlang, Haskell, F#,