Database session load


Job details

Name: Database session load
Platform: Sqlserver
Category: Performance
Description: Shows the number of connections over time per database, host and application.
Long description: Each time the procedure is executed, statistics are collected on the number of connections per database, host, program and login. Then (once a day) the maximum connection and average connections (per database, host,
Version: 1.1
Default schedule: 0,20,40 * * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘sqlserver’]/instance[maj_version > ‘2000′ & hasengine=‘YES’ & (engine_edition = ‘Microsoft SQL Server’ engine_edition = ‘Azure SQL Managed Instance’)]

Parameters

Name Default value Description
keep data for 3 Number of days to provide detailed statistics for.
ignore databases List of databases (separated by comma) which will be ignored. You can use % (percent sign) to represent wild card characters.
ignore hosts List of hosts (separated by comma) which will be ignored. You can use % (percent sign) to represent wild card characters.
ignore programs dbwatch% List of programs (separated by comma) which will be ignored. You can use % (percent sign) to represent wild card characters.
ignore logins List of logins (separated by comma) which will be ignored. You can use % (percent sign) to represent wild card characters.
keep aggregated data for 14 Number of days to provide aggregated statistics for.

Job Summary

Job Function

Dependencies

Dependency Object Type Description
master.dbo.sysprocesses System Table Used for retrieving ongoing sessions from the server.
dbw_db_session_load_histr Historic Table Stores historical data for individual sessions.
dbw_db_session_load_aggr_histr Historic Table Stores aggregated session statistics.
dbw_db_session_load Task Dependent on itself indicating it uses data collected by its own previous runs.

Implementation Details

Reporting

Both reports support dynamic querying to always reflect the most recent complete data, and are crucial for diagnosing immediate issues as well as strategic planning.

This job configuration and its automation help maintain optimal performance and aid in proactive database management within SQL Server environments.