-
7/28/2019 How to migrate your sharepoint (sql server 2008 to sql server 2012)
1/8
This is a step by step guide on how you migrate your SharePoints (I used 2010 version in this
instance) SQL Server to an new SQL Server host. In this exercise I tried migrating it in a new
version of SQL server which is 2012 from 2008 R2, also had tried it in the same version. Thereare only 9 steps to perform this task but it takes into consideration you already have a new SQL
Server provisioned.
Lets start
1. Stop all SharePoint and IIS Related Services
SharePoint 2010 Administration SharePoint 2010 Timer SharePoint 2010 Tracing SharePoint 2010 User Code Host SharePoint 2010 VSS Writer SharePoint Foundation Search V4
World Wide Web Publishing Service SharePoint Server Search 14 Web Analytics Data Processing Service Web Analytics Web Service
2. Stop IISAt the command prompt under admin context, type iisreset /stop
3. Detach all related SQL Server databases
Configuration database Central Administration content database Content databases Service application databases
i.e.
Bdc_Service_DB_xxxxxxxxxxxxxx
SharePoint_AdminContent_xxxxxxxxxxxxxSharePoint_Config
http://anyrest.files.wordpress.com/2013/02/1-stop-services1.png -
7/28/2019 How to migrate your sharepoint (sql server 2008 to sql server 2012)
2/8
WSS_Content
WSS_Logging
WSS_Search_xxxxxxxxxxxxxx
4. Move all database files (.mdf, .ldf, and .ndf) to the new server.
Place it in the data folder of the SQL Server instance of the new host.
http://anyrest.files.wordpress.com/2013/02/2-detach-database.png -
7/28/2019 How to migrate your sharepoint (sql server 2008 to sql server 2012)
3/8
5. Set up same user permissions on the new SQL server
best way to do this is when you use AD accounts is by scripting the users on the old server and
running that script on the new server. If you are not using AD accounts then you will have issueswith passwords so best way to do that is to follow this ->
http://support.microsoft.com/kb/918992
6. Attach your databases to the new SQL Server
http://support.microsoft.com/kb/918992http://support.microsoft.com/kb/918992http://anyrest.files.wordpress.com/2013/02/4-attach-database.pnghttp://anyrest.files.wordpress.com/2013/02/3-copy-database-files1.pnghttp://anyrest.files.wordpress.com/2013/02/4-attach-database.pnghttp://anyrest.files.wordpress.com/2013/02/3-copy-database-files1.pnghttp://support.microsoft.com/kb/918992 -
7/28/2019 How to migrate your sharepoint (sql server 2008 to sql server 2012)
4/8
7. Verify what ports your New SQL is using
If its using a dynamic port change it to static. To do this go to SQL Server ConfigurationManager and into the SQL Server Network Configuration Section choose the instance you
will be using. Go to the TCP/IP section and ifTCP Dynamic Ports are set to 0 (zero) then
remove that and assign a static port into the TCP PortSection on all IPs. For this sample wewill be using 14330
-
7/28/2019 How to migrate your sharepoint (sql server 2008 to sql server 2012)
5/8
8. Go to your SharePoint server and create your SQL Server Alias
IfSQL Configuration Manager is installed just head over to the SQL Native Client 10.0
configuration then into Aliases. Create a new alias that points to your new SQL Server by right
clicking on the Alias. You need to do this on both 32 and 64 bit instances.
http://anyrest.files.wordpress.com/2013/02/6-port-allocation.png -
7/28/2019 How to migrate your sharepoint (sql server 2008 to sql server 2012)
6/8
On the Alias name put your old SQL Server IP or Name On the Port the port you indicated on step 7, in this case 14330 Protocol should be TCP/IP And on Server the new SQL Server IP or Name together with its instance name if there is
any. In our case its SQL2012
http://anyrest.files.wordpress.com/2013/02/7-alias-configuration.png -
7/28/2019 How to migrate your sharepoint (sql server 2008 to sql server 2012)
7/8
If you dont have SQL Configuration Manager in your SharePoint Server then run the
CLICONFIG again on both 32 and 64 bit instances. For 32 bit go to run command and executethis %SystemRoot%/SysWow64/CliConfg.exe and for 64 just this CLICONFG all
without quotes of course. Add the same info as above.
http://anyrest.files.wordpress.com/2013/02/7-alias-configuration-2.png -
7/28/2019 How to migrate your sharepoint (sql server 2008 to sql server 2012)
8/8
9. Start all your SharePoint services, now you have successfully migrated your database.
SharePoint 2010 Administration SharePoint 2010 Timer SharePoint 2010 Tracing SharePoint 2010 User Code Host SharePoint 2010 VSS Writer SharePoint Foundation Search V4 World Wide Web Publishing Service SharePoint Server Search 14 Web Analytics Data Processing Service Web Analytics Web Service
At the command prompt under admin context, type iisreset /start.
http://anyrest.files.wordpress.com/2013/02/7-alias-configuration-b.png