How to check if RECURSIVE TRIGGERS are enabled using t-sql

06 June,2018 by Jack Vamvas

Question: An application owner has asked me if recursive triggers should be enabled on a particular application. Without looking at the GUI - how can I establish whether a database is configured as True  for recursive triggers?

 

Answer: Recursive Triggers are set at the database level. It's part of the database metadata information and is available through the sys.databases view.

This sql code executed will return all the recursive triggers information for all databases on a SQL Server Instance.

 

 

SELECT  name AS 'Database_Name' ,     
        is_recursive_triggers_on AS 'Recursive Triggers Enabled' 
        
FROM    sys.databases ;
GO


 


Author: Jack Vamvas (http://www.sqlserver-dba.com)


Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment on How to check if RECURSIVE TRIGGERS are enabled using t-sql


sqlserver-dba.com | SQL Server Performance Tuning | SQL Server DBA:Everything | FAQ | Contact|Copyright & Disclaimer