SQL Server Protocols


Job details

Name: SQL Server Protocols
Platform: Sqlserver
Category: Security
Premium package: Security and compliance package
Description: Check what SQL Server protocols are in use.
Long description: Check what SQL Server protocols are in use. By default, TCP/IP and Shared Memory protocols are enabled.
Version: 1.21
Default schedule: 27 1 1 *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘sqlserver’]/instance[maj_version > ‘2005′ & hasengine=‘YES’ & eng_inst_priv = 0 & (engine_edition = ‘Microsoft SQL Server’ engine_edition = ‘Azure SQL Managed Instance’)]

Parameters

Name Default value Description
return status 1 Return status value (ALARM – 2, WARNING – 1, or OK – 0) when other SQL Server protocols are in use than listed by parameter “permitted protocols”.
permitted protocols Shared memory, TCP List of permitted SQL Server Protocols.
history threshold 365 The maximum number of days to keep statistics for in the historic tables.

Job Summary

SELECT net_transport FROM sys.dm_exec_connections GROUP BY net_transport;

Job Details

Default Schedule

Acknowledgements

Dependencies

Dependency Description Object Cleanup On Fail
Main procedure dbw_sql_server_protocols_proc True
Current status table dbw_sql_server_protocols_info True
History table dbw_sql_server_protocols_histr True

Implementation
This job includes SQL code for:

Reporting Mechanism

The job report compiles data on the SQL Server protocols in use with specifics on process counts and the respective dates. Historical protocol usage data is also visualized graphically.

Data Presentation
The report display follows two major presentations:

Tables and Queries for Report Generation

Presentation Title SQL Query
Current Protocols in Use bc. SELECT * FROM dbw_sql_server_protocols_info ORDER BY histr_date ASC
History Statistics bc. SELECT protocol_name, check_count, histr_date FROM dbw_sql_server_protocols_histr ORDER BY histr_date ASC

Each presentation is designed to aid in confirming that the SQL Server instance remains within the defined compliance and showcases the protocols activity trend which can be vital in audit and compliance scenarios.