Below is a script to check the database mirroring synchronization state.
SELECT @@SERVERNAME as Server_Name, DB_NAME(database_id) as Database_Name, mirroring_state_desc, mirroring_role_desc, mirroring_safety_level_desc FROM sys.database_mirroring WHERE mirroring_role IS NOT NULL
Leave a Reply