<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2345068319722638032</id><updated>2012-02-12T00:44:10.757-08:00</updated><title type='text'>MS SQL SERVER 2008</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mssqlserveradmin2008.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2345068319722638032/posts/default'/><link rel='alternate' type='text/html' href='http://mssqlserveradmin2008.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Mohammad Usman</name><uri>http://www.blogger.com/profile/07985495442892020135</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/-nT72Y7ZpJ4s/TpfAmIWiSVI/AAAAAAAAAG8/pyuYAp28VTI/s220/usmann.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2345068319722638032.post-7718501195260382612</id><published>2012-02-10T05:02:00.000-08:00</published><updated>2012-02-10T13:37:16.594-08:00</updated><title type='text'>Check DB Mirroring Status</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="background-color: white; color: #555555; font-family: Arial, Tahoma, Verdana; font-size: 12px; line-height: 20px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;"&gt;Database mirroring is a primarily software solution for increasing database availability. Mirroring is implemented on a per-database basis and works only with databases that use the full recovery model. The simple and bulk-logged recovery models do not support database mirroring. Database mirroring is supported in SQL Server Standard and Enterprise.&lt;/div&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;div style="background-color: white; color: #555555; font-family: Arial, Tahoma, Verdana; font-size: 12px; line-height: 20px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;"&gt;Database mirroring offers a substantial improvement in availability over the level previously possible using Microsoft&amp;nbsp;SQL Server and provides an easy-to-manage alternative or supplement to failover clustering or log shipping. When a database mirroring session is synchronized, database mirroring provides a hot standby server that supports rapid failover with no loss of data from committed transactions. During a typical mirroring session, after a production server fails, client applications can recover quickly by reconnecting to the standby server.&lt;/div&gt;&lt;blockquote&gt;&lt;b&gt;Note&lt;/b&gt;&lt;br /&gt;You cannot mirror the master, msdb, temp, or model databases.&lt;/blockquote&gt;&lt;pre class="sql" name="code"&gt;select DB_Name(database_id) as DBName,&lt;br /&gt;mirroring_role_desc,mirroring_state_desc,&lt;br /&gt;mirroring_safety_level_desc,mirroring_connection_timeout&lt;br /&gt;from sys.database_mirroring&lt;br /&gt;where mirroring_guid is not null&lt;br /&gt;&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2345068319722638032-7718501195260382612?l=mssqlserveradmin2008.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mssqlserveradmin2008.blogspot.com/feeds/7718501195260382612/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserveradmin2008.blogspot.com/2012/02/check-db-mirroring-status.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2345068319722638032/posts/default/7718501195260382612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2345068319722638032/posts/default/7718501195260382612'/><link rel='alternate' type='text/html' href='http://mssqlserveradmin2008.blogspot.com/2012/02/check-db-mirroring-status.html' title='Check DB Mirroring Status'/><author><name>Mohammad Usman</name><uri>http://www.blogger.com/profile/07985495442892020135</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/-nT72Y7ZpJ4s/TpfAmIWiSVI/AAAAAAAAAG8/pyuYAp28VTI/s220/usmann.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2345068319722638032.post-400165574030421915</id><published>2012-02-10T01:37:00.000-08:00</published><updated>2012-02-10T13:38:16.010-08:00</updated><title type='text'>Check DB Owner Name</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="background-color: white; color: #555555; font-family: Arial, Tahoma, Verdana; font-size: 12px; line-height: 20px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;"&gt;We have successfully setup the mirroring between our primary site SQ1 and SQ02 servers. We have also configured the log shipping from our primary site to our secondary/DR site. It is working fine and we equal no of DBs available on DR site SQL server. These DBs are read only as per the log shipping configuration.&lt;/div&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;div style="background-color: white; color: #555555; font-family: Arial, Tahoma, Verdana; font-size: 12px; line-height: 20px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;"&gt;&lt;span class="fullpost"&gt;Now, at primary site user “A” is the owner of DBs but at DR site user “B” is the DB owner. seems this attribute is not getting replicated to DR site and we are not able to change the owner manually as DB is read only.&lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #555555; font-family: Arial, Tahoma, Verdana; font-size: 12px; line-height: 20px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;"&gt;&lt;span class="fullpost"&gt;Is there any way to change the DB owner name at DR site without stopping the log shipping ?Yes,As shown in this query you can get owner name.&lt;/span&gt;&lt;/div&gt;&lt;pre class="sql" name="code"&gt;SELECT SUSER_SNAME(owner_sid) as Owner,* FROM sys.databases&lt;/pre&gt;&lt;table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-wOOdsrd56A8/TzV9hoqO_hI/AAAAAAAAALA/Vd0GVFwgn2s/s1600/ownerInfo.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-wOOdsrd56A8/TzV9hoqO_hI/AAAAAAAAALA/Vd0GVFwgn2s/s1600/ownerInfo.png" width="100%" height="100%"/&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2345068319722638032-400165574030421915?l=mssqlserveradmin2008.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mssqlserveradmin2008.blogspot.com/feeds/400165574030421915/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mssqlserveradmin2008.blogspot.com/2012/02/check-db-owner-name.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2345068319722638032/posts/default/400165574030421915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2345068319722638032/posts/default/400165574030421915'/><link rel='alternate' type='text/html' href='http://mssqlserveradmin2008.blogspot.com/2012/02/check-db-owner-name.html' title='Check DB Owner Name'/><author><name>Mohammad Usman</name><uri>http://www.blogger.com/profile/07985495442892020135</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/-nT72Y7ZpJ4s/TpfAmIWiSVI/AAAAAAAAAG8/pyuYAp28VTI/s220/usmann.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-wOOdsrd56A8/TzV9hoqO_hI/AAAAAAAAALA/Vd0GVFwgn2s/s72-c/ownerInfo.png' height='72' width='72'/><thr:total>0</thr:total></entry></feed>