Step by step how to migrate a SharePoint 2010 SQL Server

Here's a 4 step method to migrate SharePoint 2010 data from 1 SQL Server to another. This was the method I used for the "S" Network, combined with other steps, but this process migrated the data.

First, the commands.  Each step is actually a script that hits each database.  I chose to write out each command on a new line and just run it in the SQL query window. See http://www.sharepoint.name/2014/04/make-sql-server-write-its-own-scripts.html for that script.
  1. BACKUP DATABASE [NAME] TO DISK = '\\PATH\FULL\NAME.BAK'
  2. RESTORE DATABASE [NAME] FROM DISK = '\\PATH\FULL\NAME.BAK' WITH NORECOVERY, REPLACE
  3. BACKUP DATABASE [NAME] TO DISK = '\\PATH\DIFF\NAME.BAK' WITH DIFFERENTIAL
  4. RESTORE DATABASE [NAME] FROM DISK = 'PATH\DIFF\NAME.BAK' WITH RECOVERY
Here's the explanation

  1. Start with a full backup of Production. This can be done without downtime.
  2. Restore to the NEW SQL database server.
  3. During the ASI downtime window turn off access to the SQL server (In SharePoint's case, I will turn off all front end web servers).  this batch will perform a DIFFERENTIAL backup.
  4. Restore the differential backup to the new server

 

Comments

Popular posts from this blog

Setting SharePoint announcements to auto delete after expiration

Updating a single field in a SharePoint List using Power Automate Flows

SharePoint driven rich text dashboard using jqueryui. (JQuery file)