SHARE
TWEET

Check mirroring status

a guest Nov 15th, 2012 107 Never
  1. USE Master
  2. GO
  3.  
  4. SELECT  M.mirroring_partner_name,
  5.                 M.mirroring_role_desc,
  6.                 M.mirroring_state_desc,
  7.                 D.state_desc
  8. FROM    sys.database_mirroring M
  9. JOIN    sys.databases D
  10. ON              M.database_id = D.database_id
  11. WHERE   mirroring_role_desc IS NOT NULL
RAW Paste Data
Top