I\'m looking for the most portable method to check for existence of a trigger in MS SQL Server. It needs to work on at least SQL Server 2000, 2005 and prefe
If you're trying to find a server scoped DDL Trigger on SQL Server 2014, you should try sys.server_triggers.
IF EXISTS (SELECT * FROM sys.server_triggers WHERE name = 'your trigger name')
BEGIN
{do whatever you want here}
END
If I told tou anything incorrect, please let me know.
Edit: I didn't check for this dm on another versions of SQL Server.