Want more features on Pastebin? Sign Up, it's FREE!
Guest

Check mirroring status

By: a guest on Nov 15th, 2012  |  syntax: T-SQL  |  size: 0.24 KB  |  views: 99  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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
clone this paste RAW Paste Data