Get the text of all the triggers in a database

select t.name, Comments.*
    from sys.triggers t
        Inner Join syscomments Comments On t.object_id = Comments.id
    where Comments.text like '%audit%'

RealWorldCode gives developers practical, real‑world solutions with clean, working code — no fluff, no theory, just answers.
Links
Home
Knowledge Areas
Sitemap
Contact
Et cetera
Privacy Policy
Terms and Conditions
Cookie Preferences