sp_dbmmonitorchangealert (Transact-SQL)
Adds or changes warning threshold for a specified mirroring performance metric.
The following example sets thresholds for each of the performance metrics and the retention period for the AdventureWorks database. The following table shows the values used in the example.
alert_id | Performance metric | Warning threshold | Is the warning enabled? |
|---|---|---|---|
1 | Oldest unsent transaction | 30 minutes | Yes |
2 | Unsent log | 10,000 KB | Yes |
3 | Unrestored log | 10,000 KB | Yes |
4 | Mirror commit overhead | 1,000 milliseconds | No |
5 | Retention period | 8 hours | Yes |
EXEC sp_dbmmonitorchangealert AdventureWorks, 1, 30, 1 ; EXEC sp_dbmmonitorchangealert AdventureWorks, 2, 10000, 1 ; EXEC sp_dbmmonitorchangealert AdventureWorks, 3, 10000, 1 ; EXEC sp_dbmmonitorchangealert AdventureWorks, 4, 1000, 0 ; EXEC sp_dbmmonitorchangealert AdventureWorks, 5, 8, 1 ;
