Page History
...
Note |
---|
To use SQL Diagnostic Manager snapin, you have to enable the provider and register the SQLdm drive. |
Anchor | ||||
---|---|---|---|---|
|
Edit the general settings of your monitored SQL Server with the following PowerShell commands:
Cmdlet Name | Description | Examples |
---|---|---|
-addtag | Associates tags to a server. Note that any tags that are specified have to already exist. |
|
| Disassociates tags from a server. Note that any tags that are specified have to already exist. |
|
| Specifies how often (in minutes) scheduled data collection takes place. |
|
-DatabaseStatisticsIntervalMinutes | Specifies how often (in minutes) database statistics collection takes place. | Set-SQLdmMonitoredInstance -Path (Escape-SQLdmName -Name |
| Enables or disables extended data collection. |
|
| Sets SQL Authentication credentials. |
|
| Enables or disables encrypt connection. |
|
| Enables or disables trust server certificates. |
|
Anchor Edit query monitor settings Edit query monitor settings
Edit query monitor settings
Edit query monitor settings | |
Edit query monitor settings |
Customize the query monitor settings of your monitor SQL Server with the following PowerShell commands:
Cmdlet Name | Description | Examples |
---|---|---|
| Enables query monitoring. | Set-SQLdmMonitoredInstance -Path (Escape-SQLdmName -Name |
| Disables query monitoring. |
|
| Captures SQL batches. |
|
| Captures SQL statements. |
|
| Captures stored procedure and triggers. |
|
| Sets up threshold Duration (in milliseconds). |
|
| Sets up threshold Logical disk reads. |
|
| Sets up threshold CPU Usage (in milliseconds). |
|
| Sets up threshold Physical disk writes. |
|
Anchor Excludeapp Excludeapp
Exclude applications, databases and SQL statements within PowerShell
Excludeapp | |
Excludeapp |
Exclude applications, databases, and SQL statements with the following PowerShell commands:
Cmdlet Name | Description | Examples |
---|---|---|
| Excludes applications from the query monitor. |
|
| Excludes databases from the query monitor. |
|
| Excludes SQL statements from the query monitor. |
|
Anchor Disablerep Disablerep
Disable replication collection
Disablerep | |
Disablerep |
Disable replication statistics collection with the following PowerShell command:
Cmdlet Name | Description | Example |
---|---|---|
| Disables replication statistics collection. |
|
Anchor Customizetable Customizetable
Customize table statistics collection
Customizetable | |
Customizetable |
Customize table statistics collection with the following PowerShell commands:
Cmdlet Name | Description | Example |
---|---|---|
| Specifies the time of day for quiet time collection to occur. | Set-SQLdmMonitoredInstance -Path (Escape-SQLdmName -Name |
| Specifies the days of the week to perform quiet time collection. | |
| Specifies the quiet time minimum table size (in kilobytes) to collect reorganization statistics. | |
| Specifies the list of databases to exclude from quite time data collection. |
Anchor Customizemaintenance Customizemaintenance
Customize maintenance mode settings
Customizemaintenance | |
Customizemaintenance |
Customize maintenance mode settings with the following PowerShell commands:
...