monitor Database mirroring by SQL Management:
1- I will Stop mirroring Server to input transaction into Principle Server and See the log what happened in It Go to your database Mirroring in Principle Server >> Write Click >>> tasks >>>Lunch Database mirroring monitor
2- Create Table on Principle Server and insert 10000 Record into New table
CREATE TABLE TEST( A INT, B INT)
DECLARE @I INT=0
WHILE @I <100000
BEGIN
INSERTINTO TEST VALUES(@I,@I)
SET @I=@I+1
END
SELECT COUNT(*) FROM TEST
3- now run the Script and insert the Data then let’s go to Check the monitor to See what happened
4- Then Start the mirroring Server and Check the Monitor again
*********************************************************************************************************************
Check the database mirroring information :
SELECT M.database_id , D.Name , M.mirroring_state_desc ,
M.mirroring_role_desc,M.mirroring_partner_name , M.mirroring_partner_instance,
M.mirroring_witness_name , M.mirroring_witness_state_desc
FROM sys.database_mirroring as M inner join Sys.databases as D
on M.database_id = D.database_id
Where D.database_id > 4