Welcome to MSDN Blogs Sign in | Join | Help

I love blog comments - SharePoint and SQL failovers.

I love blog comments. They keep you honest and earnest. In response to my blog post Database Mirroring and Log Shipping. Which is Better? Andrew Woodward noted that my post did not address the fact that SharePoint is not mirroring aware. While my intent was to simply compare the two technologies (thereby keeping the scope small) as the owner of a SharePoint blog it’s my duty to talk about the SharePoint aspect.

 

Specifically in reference to mirroring, no… SharePoint is not mirroring aware, but that is not a major hurdle. Out of the box, SharePoint does allow you to use the STSADM –O RENAMESERVER command to rename any server in your topology including your SQL server. The problem, however, is that for some reason, the query server does not honor the command. You’ll notice that you lose the query after failover. Once your fail back over, query is fine.

 

There are better solutions. I’m just going to list them for now, but will expand on these in the future. Note: Each solution involves configuring SharePoint to use an arbitrary SQL cluster name for all its database connections.

 

SQL Aliasing –  See this article for more information: http://blogs.msdn.com/sql_protocols/archive/2007/01/07/connection-alias.aspx

 

Windows Load Balancing – Yes, you can front your SQL server with NLB. It works pretty slick. This article explains NLB and SQL Server 2000, but it still works in 2005. http://www.microsoft.com/technet/prodtechnol/sql/2000/deploy/hasog04.mspx

 

Hosts file – You can call you SQL server anything you want in your hosts file as long as the IP points to the principal server.

 

WINS/DNS – Same as hosts file, but is more complex. I don’t know any SharePoint admins that also have rights to manage WINS/DNS.

 

Published Sunday, July 29, 2007 11:00 AM by Michael Watson

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Database Mirroring or Log Shipping for SharePoint | 21apps

# re: I love blog comments - SharePoint and SQL failovers.

What about Database Mirroring or Clustering?  Which is better in a MOSS 2007 env.?

Wednesday, November 19, 2008 2:24 PM by Jay

# re: I love blog comments - SharePoint and SQL failovers.

It depends on your scenario. Clustering is much more routine and easier to manage, but with one instance of data a clustered environment is typically a single point of failure. Mirroring on the other hand is way more operationally involved, but with 2 instances of data it's much less suseptible to loss. You have to understand your scenario, goals, and decide which one better meets your needs. The best of both worlds is to use hardware mirroring with your cluster. Another option would be to mirror your clustered data.

Wednesday, November 19, 2008 3:21 PM by Mike

# DNS Alone?

Are there any issue(s) in simply using DNS aliases and then just changing the IP after you have recovered either the log shipping copy or the SQL mirrored copy?  It appears to work fine with just a DNS redirect without any stsadm or other commands.

Wednesday, February 25, 2009 3:51 PM by Thomas E

# re: I love blog comments - SharePoint and SQL failovers.

if you really love comments then you will approve this immediately.

Saturday, April 25, 2009 6:05 AM by Global Cash Mavericks

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker