<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results for 'app:weblogs' matching tags 'SQL 2008' and 'mirroring status'</title><link>http://msmvps.com/search/SearchResults.aspx?q=app:weblogs&amp;tag=SQL+2008,mirroring+status&amp;orTags=0&amp;o=DateDescending</link><description>Search results for 'app:weblogs' matching tags 'SQL 2008' and 'mirroring status'</description><dc:language>en-US</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>Checking DB Mirroring Status</title><link>/http://feedproxy.google.com/~r/SqlServerCitation/~3/AV1YWW55xTo/checking-db-mirroring-status.html</link><pubDate>Tue, 13 Sep 2011 05:00:00 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1799490</guid><dc:creator>Anonymous</dc:creator><description>&lt;div dir="ltr" style="text-align:left;"&gt;&lt;div dir="ltr" style="text-align:left;"&gt;&lt;span style="font-family:&amp;#39;Trebuchet MS&amp;#39;;font-size:x-small;"&gt;Often I see a question in community on how to quickly check the status of the database mirroring, sometime in busy environment and busy server launching database mirroring keep us waiting for a while, so is there a way we can check database mirroring status ?&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family:&amp;#39;Trebuchet MS&amp;#39;;font-size:x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family:&amp;#39;Trebuchet MS&amp;#39;;font-size:x-small;"&gt;Yes, of course we do have; execute below statement and you will have a status of the database mirroring for all the database you have configured mirroring on :&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family:&amp;#39;Trebuchet MS&amp;#39;;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;pre class="sql"&gt;SELECT DB_NAME(database_id),   
mirroring_role_desc,    
mirroring_state_desc    
FROM sys.database_mirroring    
WHERE mirroring_guid IS NOT NULL; &lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family:&amp;#39;Trebuchet MS&amp;#39;, sans-serif;"&gt;Let me know if you are looking some specific code, and I will try to post it here!!&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family:&amp;#39;Trebuchet MS&amp;#39;, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family:&amp;#39;Trebuchet MS&amp;#39;, sans-serif;"&gt;- Hemantgiri S. Goswami (http://www.sql-server-citation)&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width="1" height="1" src="https://blogger.googleusercontent.com/tracker/8332641-2049433658944499507?l=www.sql-server-citation.com" alt="" /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SqlServerCitation?a=AV1YWW55xTo:-lIT_JuwJOo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SqlServerCitation?d=yIl2AUoC8zA" border="0" alt="" /&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SqlServerCitation?a=AV1YWW55xTo:-lIT_JuwJOo:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SqlServerCitation?d=63t7Ie-LG7Y" border="0" alt="" /&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SqlServerCitation?a=AV1YWW55xTo:-lIT_JuwJOo:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SqlServerCitation?d=dnMXMwOfBR0" border="0" alt="" /&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SqlServerCitation?a=AV1YWW55xTo:-lIT_JuwJOo:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SqlServerCitation?d=7Q72WNTAKBA" border="0" alt="" /&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SqlServerCitation?a=AV1YWW55xTo:-lIT_JuwJOo:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SqlServerCitation?i=AV1YWW55xTo:-lIT_JuwJOo:V_sGLiPBpWU" border="0" alt="" /&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SqlServerCitation?a=AV1YWW55xTo:-lIT_JuwJOo:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SqlServerCitation?d=qj6IDK7rITs" border="0" alt="" /&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SqlServerCitation?a=AV1YWW55xTo:-lIT_JuwJOo:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SqlServerCitation?i=AV1YWW55xTo:-lIT_JuwJOo:KwTdNBX3Jqk" border="0" alt="" /&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SqlServerCitation?a=AV1YWW55xTo:-lIT_JuwJOo:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SqlServerCitation?d=l6gmwiTKsz0" border="0" alt="" /&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SqlServerCitation?a=AV1YWW55xTo:-lIT_JuwJOo:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SqlServerCitation?i=AV1YWW55xTo:-lIT_JuwJOo:gIN9vFwOqvQ" border="0" alt="" /&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SqlServerCitation?a=AV1YWW55xTo:-lIT_JuwJOo:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SqlServerCitation?d=TzevzKxY174" border="0" alt="" /&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/SqlServerCitation?a=AV1YWW55xTo:-lIT_JuwJOo:nQ_hWtDbxek"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SqlServerCitation?d=nQ_hWtDbxek" border="0" alt="" /&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/SqlServerCitation/~4/AV1YWW55xTo" height="1" width="1" alt="" /&gt;</description></item></channel></rss>