sp_dbmmonitorchangealert (Transact-SQL)
SQL Server 2008 R2
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 AdventureWorks2008R2 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 AdventureWorks2008R2, 1, 30, 1 ; EXEC sp_dbmmonitorchangealert AdventureWorks2008R2, 2, 10000, 1 ; EXEC sp_dbmmonitorchangealert AdventureWorks2008R2, 3, 10000, 1 ; EXEC sp_dbmmonitorchangealert AdventureWorks2008R2, 4, 1000, 0 ; EXEC sp_dbmmonitorchangealert AdventureWorks2008R2, 5, 8, 1 ;
