Solved

Determine when SQL Principal and Mirror Flipped

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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
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.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video discusses moving either the default database or any database to a new volume.

760 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

16 Experts available now in Live!

Get 1:1 Help Now