Solved

Determine when SQL Principal and Mirror Flipped

Posted on 2009-04-14
3
658 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

by Mark Wills PIVOT is a great facility and solves many an EAV (Entity - Attribute - Value) type transformation where we need the information held as data within a column to become columns in their own right. Now, in some cases that is relatively…
When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

911 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

17 Experts available now in Live!

Get 1:1 Help Now