Solved

Finding out if mirroring is active and alive

Posted on 2010-11-14
5
700 Views
Last Modified: 2012-05-10
I have an SQL Server 2008 running with a mirrored database, with distinct machines (master, slave, witness). I need to program an administrator's tool where he can see with a kind of traffic light if mirroring is active and working, and if the sql server instances are healthy and running.

How can this be achieved ? Is there any kind of API or .NET library for examining these tings ? Or could I talk to the network ports (5022 for the mirroring, for example) to find this out, and if yes, what must be called ?
0
Comment
Question by:PC-Alex
  • 2
5 Comments
 
LVL 31

Accepted Solution

by:
James Murrell earned 500 total points
ID: 34132372
we used script @ http://www.mssqltips.com/tip.asp?tip=1859

also at bottom of that page some good reading info
0
 
LVL 20

Expert Comment

by:Marten Rune
ID: 34132413
Use mirror monitor: http://social.msdn.microsoft.com/Forums/en-US/sqldatabasemirroring/thread/2b7bd2e2-3d82-48b7-a478-715b9e670c07

Not a administrative comment. Sorry about that!

//Mårten
0
 
LVL 31

Expert Comment

by:James Murrell
ID: 34132419
LOL martenrune keeps happening to me...( cannot see in edit profiel etc where to set it)
0
 
LVL 1

Author Closing Comment

by:PC-Alex
ID: 34170821
Thanks, thats kind of what I was looking for
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

     When we have to pass multiple rows of data to SQL Server, the developers either have to send one row at a time or come up with other workarounds to meet requirements like using XML to pass data, which is complex and tedious to use. There is a …
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now