SharePoint 2016/2019 Migration Walkthrough Guide

Migration of existing SharePoint 2016/2019 on-premises sites, document libraries, files, permissions, and related content to SharePoint Online in Microsoft 365. The goal is to modernize the environment, reduce on-premises infrastructure dependency, improve accessibility, and take advantage of Microsoft 365 security and collaboration capabilities.

SharePoint 2016/2019 Migration Walkthrough Guide

Phase 1 : First, take a content database backup from old server.

Please follow the steps below.

  1. Go to the central admin and click on “Manage Content Databases”.
SharePoint 2016/2019 Migration Walkthrough Guide

2. Select the web application for which you need the content database backup.

SharePoint 2016/2019 Migration Walkthrough Guide

3. Copy the Content Database name. Then select the Content Database.

SharePoint 2016/2019 Migration Walkthrough Guide

4. Open the SQL server management studio. Expand the database and Select the database. Right-click on it. Select the Tasks > Back Up.

SharePoint 2016/2019 Migration Walkthrough Guide

5. It will navigate to the following window. Select the below location.

SharePoint 2016/2019 Migration Walkthrough Guide

6. Remove this path and add the path where you want to save your back up (.bak) file.

SharePoint 2016/2019 Migration Walkthrough Guide

7. Now, click on the OK button and wait till the backup completes successfully.

SharePoint 2016/2019 Migration Walkthrough Guide

8. Once complete you can see your .bak file in the location which you have set above.

SharePoint 2016/2019 Migration Walkthrough Guide

Phase 2: Create a new web application on the SP 2019 environment. To create a new web application go to central admin and clicks on “Manage web application”.

SharePoint 2016/2019 Migration Walkthrough Guide

And now, click the “New” ribbon button.

SharePoint 2016/2019 Migration Walkthrough Guide

A dialog will appear. Please enter all the necessary information.

SharePoint 2016/2019 Migration Walkthrough Guide

Now, Wait until the processing is finished.

SharePoint 2016/2019 Migration Walkthrough Guide

Finally, you can see your new web application has been successfully created on your end.

After creating the web application follow these steps as mentioned below.

  • Select Application Management and Select the Manage Content Database under the Databases.
SharePoint 2016/2019 Migration Walkthrough Guide
  • Select the web application you have created.
SharePoint 2016/2019 Migration Walkthrough Guide
  • Then click on the Content Database name (copy the name of the database to use it later on), it will take you to the Manage Content Database Settings page.

Under the Database Status, select the “Offline” option from the dropdown list.Check the Check Mark in the “Remove content database” checkbox.

SharePoint 2016/2019 Migration Walkthrough Guide

A prompt will come, select OK on that. Now the content database is removed from the web application.

  • To detach the Content Database from SQL Server Management Studio please follow the steps: Connect the SQL Server Management Studio => Expand the Database. => Select the content database name that you have copied previously=>Right click on SQL => Tasks= > Detach
SharePoint 2016/2019 Migration Walkthrough Guide

Check the checkbox in the Drop and click Ok.

Phase 3:  Restore the old database.

  • Right Click on Database and select Restore.
SharePoint 2016/2019 Migration Walkthrough Guide
  • Now select the “Device” radio button and browse the path where you have kept the old backup file
SharePoint 2016/2019 Migration Walkthrough Guide
  • Select the file from the folder. Now you can see a similar window as shown below. Please verify the things and then click on the “Ok” button.
  • Select the file from the folder. Now you can see a similar window as shown below. Please verify the things and then click on the “Ok” button.

Please wait for it to successfully restore the database on your new server SQL Server environment.

Phase 4 : Now, the time has come to associate and upgrade this content database to newly created web application. Please use this below command to mount the database to a new web application.

Open the new SharePoint Management Shell as “Run as Administrator”.

Mount-SPContentDatabase “<DatabaseName>” -DatabaseServer “<Db server name>” –WebApplication “<webapplication url>”


Once the command executes successfully, then you will get a message, as shown below. This command will upgrade the database and attach this content database to the web application.

The Complete Guide to SharePoint Online Migrations

Benefits of SharePoint 2016/2019 Migration Walkthrough Guide

  • Modern Cloud Platform – Move from on-premises SharePoint to Microsoft 365.
  • Reduced Infrastructure Costs – Reduce server maintenance, hardware, and upgrade requirements.
  • Improved Accessibility – Access files and SharePoint sites securely from anywhere.
  • Enhanced Collaboration – Improve real-time document sharing and collaboration.
  • Better Security – Benefit from Microsoft 365 security, compliance, and access controls.
  • Automatic Updates – Microsoft manages platform updates and maintenance.
  • Scalability – Easily scale storage and users as business requirements grow.
  • Integration with Microsoft 365 – Better integration with Teams, OneDrive, Outlook, and other Microsoft 365 services.

How to Migrate File Share to SharePoint Online

Leave a Reply