16 January 2014

Get the related trigger to a table

select so.name, text
from
 sysobjects so, syscomments sc
where
 type = 'TR'
and
 so.id = sc.id and text like '%YourTableName%'

No comments:

Post a Comment