Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does SQL Server 2005 provide an interface that can be programmatically addressed to determine the health of a mirrored database?

If so, does anyone have examples of how to do so?

share|improve this question
up vote 4 down vote accepted

For monitoring, querying the sys.database_mirroring DMV is probably the easiest. It contains fields for mirroring_role_desc and mirroring_state_desc.

Link to BOL:

The SQL Error log also provides information about these, and there is an event you can catch with SQL Trace as well, I believe.

share|improve this answer

This video tutorial can give some inputs for your requirement

Video - How to setup Database(DB) Mirroring SQL Server 2005 Tutorial URL -

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.