Solved

Determine when SQL Principal and Mirror Flipped

Posted on 2009-04-14
3
663 Views
Last Modified: 2012-05-06
We are using mirroring between two SQL 2005 Standard edition installations. ServerA is the host of the principal database. ServerB is the host of the mirrored version.

Is there a way to determine the history of flips? Meaning how do we determine when the databases have flipped. We don't see a specific eventid and even so it would be nice to see this in a report or a SQL query. The reason it flipped would be even better!

Thanks :)
0
Comment
Question by:GCIT_Manager
  • 2
3 Comments
 
LVL 42

Expert Comment

by:EugeneZ
ID: 24194658
did you check GUI and sql server error log/
Database Mirroring History
http://msdn.microsoft.com/en-us/library/ms365382(SQL.90).aspx 
0
 

Author Comment

by:GCIT_Manager
ID: 24195810
Technically this works. Except this makes you scroll through thousands of entries since it creates one every minute. There's got to be a way to run a SQL query to find this information out.
0
 
LVL 42

Accepted Solution

by:
EugeneZ earned 500 total points
ID: 24196385
check table  msdb.dbm_monitor_data  
but use : the stor proc:
sp_dbmmonitorresults
http://msdn.microsoft.com/en-us/library/ms366320(SQL.90).aspx
 --
more
Monitoring Mirroring Status
http://msdn.microsoft.com/en-us/library/ms365781(SQL.90).aspx
 
--
more:

sys.dm_db_mirroring_connections  
 http://sqlblogcasts.com/blogs/simons/archive/2005/11/15/Database-mirror-state-information.aspx
----
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

Introduction This article will provide a solution for an error that might occur installing a new SQL 2005 64-bit cluster. This article will assume that you are fully prepared to complete the installation and describes the error as it occurred durin…
Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

785 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