Solved

Finding out if mirroring is active and alive

Posted on 2010-11-14
5
732 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Query Syntax 17 43
SQL Syntax: How to force case sensitive query? 2 44
average of calculation (TSQL) 4 26
How can I get the entire database script? 7 13
Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

839 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