tsql - SQL Mirroring - Queries to confirm health and to check back log -
I am after any SQL queries that may be able to confirm the health of the mirror. Also if there is a query in which you can see the current backlog.
Thanks a lot in advance.
The following code will get all the details of mirroring:
EXEC sp_dbmmonitorresults [database of Name], [Late x hour results], [status does not update for database]
Example:
USE msdb;
EXEC sp_dbmmonitorresults AdWords Works 2012, 2, 0;
This code gets a description of the last 2 hours.
Comments
Post a Comment