Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

2 Answers

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: http://technet.microsoft.com/en-us/library/ms178655.aspx

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
add comment

This video tutorial can give some inputs for your requirement

Video - How to setup Database(DB) Mirroring SQL Server 2005 Tutorial URL - http://wtv.watchtechvideos.com/topic275.html

share|improve this answer
add comment

Your Answer

 
discard

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.