How do I list (or export) the code for all triggers in a database?

Viewed 10532

I'm changing from local time to UTC-time in our database.
There are alot of triggers that copies information to history tables that currently uses GETDATE().

I would like to find every trigger that uses GETDATE() (instead of GETUTCDATE()) in the database, is there any way to do this automatic?

I've listed them by select * from sys.triggers but I also need to see the actual code to be able to find the use of GETDATE().

3 Answers
Related