Experience True 24/7 Support Services

Embrace an end-to-end support with preventive care for your Microsoft SQL Server to keep the databases healthy and running. 

SQL Server Severity 17 Error 12436

SQL Server Error 12436, Severity 17: The database auto-close option is enabled with one or more open connections. This could lead to inconsistent behavior.` This error occurs when a database has its `AUTO_CLOSE` option set to `ON`, but there are active connections accessing it. The `AUTO_CLOSE` feature automatically closes the database once all sessions disconnect from it. However, if an active session exists while this operation occurs, it may raise concerns about potential inconsistency in performance and behavior.  A severity level of 17 indicates that SQL Server does not have enough resources (or encounters specific configuration issues) necessary for executing user requests. 

 The root cause stems from having the AUTO_CLOSE property turned on for a given SQL Server database: 

  1. Each time the last connection to a database closes, AUTO_CLOSE forces SQL Server to drop any remaining cached data and clean up memory. 
  2. Reopening these databases increases overhead due to constant starting/stopping activity. 
  3. During periods where multiple users simultaneously connect/disconnect, inconsistencies or resource-contention scenarios may occur.  

Typically seen in environments like test/dev tiers where default configurations haven't been optimized; it's rarely suitable for production systems.  

Assess Whether AUTO_CLOSE Is Needed, In most cases, turning off `AUTO_CLOSE` improves reliability and performance significantly. If this error is happening frequently OR you expect high concurrency workloads with periodic idle times between events.

Get started today.
Get more for your investments.