SQL Server Monitoring – Database configuration

This blog is part of the blog series named SQL Server Monitoring.

Purpose

To get a quick overview of the databases on the instance and if they have configurations that should be changed.

Sources

This feature queries the DMV sys.databases which returns data for the databases on the instance.

Report

The report has a table showing the databases on the instance, as well a few but critical and important settings.

The following settings well be highlighted with green, yellow or red background depending on their settings:

SettingDescriptionBackground color
CollationDatabases not configured with the same collation as the instanceYellow
Comp.Databases running at a lower compatibility level than the instanceYellow
RecoveryUser databases not configured to be using Full recovery model.

There can be situations where it is acceptable to have a production database in Simple or Bulk Logged but these situations are rare
Yellow
RCSIDatabases not configured to not have RCSI enabledYellow
Page verifyDatabases not configured to be using Checksum as Page verify methodRed
Auto closeDatabases configured to be using Auto closeRed
Auto shrinkDatabases configured to be using Auto shrinkRed
Auto update stats. async.Databases configured to be using Auto update stats. async.Yellow
EncryptedDatabases configured to be EncryptedGreen
Delayed durabilityDatabases configured to be using Delayed durabilityYellow

Model

The model for the report uses the fact [Database state] and [Database state history] and the dimension [Database].

Configuration

There is no configuration for this feature.

Scheduling

The default schedule for the feature is every hour (3600 seconds).

Retention

The default retention for the table dbo.fhsmDatabaseState is 1.825 days (5 years).