Solved

Finding out if mirroring is active and alive

Posted on 2010-11-14
5
742 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Clone table from one server.database to another server.database 24 61
MS SQL Server select from Sub Table 14 49
Database Owner 3 45
Database Mail Profiles 1 51
     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 …
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

739 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