January 30, 2012 at 4:21 am
Hi Expertz,
Can anyone please give me a query to find when was the last database mirroring failover recorded.
Tanx
January 30, 2012 at 4:39 am
Eswin (1/30/2012)
Hi Expertz,Can anyone please give me a query to find when was the last database mirroring failover recorded.
Check this
January 30, 2012 at 8:58 pm
This was not helpful. Is there some query that doesn't require to create any trigger,sp etc.
Tanx
January 31, 2012 at 3:06 am
See if sp_readerrorlog 0,1,'mirror', 'failover' (or some variation thereof) works for you.
For more in depth monitoring of mirroring events you may need to look into capturing WMI events via SQL Agent alerts.
Cheers
February 6, 2012 at 2:56 pm
If you don't limit yourself to a defined query, you can try examining either the SQL Server logs or the System Application logs. Generally you will receive the same event messages in both logs; depending on activity and filtering options, you can usually land on the messages in question pretty quickly.
How frequently will you need to answer this question? If it is not a frequent question, you will probably want to browse the logs to identify the context of other/related events surrounding the fail over, such as lost communications without triggering a fail over.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy