Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Administration - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 6525

Checking SQL database mirroring health

$
0
0
Hi Gurus,There is database mirroring currently setup in my environment.I do not want to use SQL management studio (database mirroring monitor) to check its mirroring status.q1) is checking/reading from sys.database_mirroring sufficient ? is there any difference when reading from the primary instance or mirrored instance ?q2) is there anyway we can check the last LSN on disk in the primary database vs the last LSN on mirror database ?(I am not sure if comparing the column value of mirroring_failover_lsn vs mirroring_end_of_log_lsn ) would help ?my understanding = mirroring_end_of_log_lsn -> local mirroring_failover_lsn -> both local and mirrored if a mirrored database is out of sync, what would the value of these 2 columns reflect ?q3) lastly, if i would like to check the mirrored database datafile path , should i select from sys.sysaltfiles in the mirrored instance ? or there is other view/ways to do so ?Regards,Noob

Viewing all articles
Browse latest Browse all 6525

Trending Articles