Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
hi,i had setup the database mirroring and its running. now how to confirm that. wht opeartin shd be done on princiapl database. and see in mirror database
Check the sys.database_mirroring table. I use the following query for quick status checks:
select @@servername server, db_name(database_id) DB, mirroring_state_desc state,mirroring_role_desc role, mirroring_partner_instance partner, mirroring_witness_name witness, mirroring_witness_state_desc witness_statefrom sys.database_mirroring where mirroring_guid is not null order by DB