A Guide to SQL Server Migration: Made Easy for 2024 - Learn | Hevo (2024)

On July 12, 2022, Microsoft will end support for its popular SQL Server 2012 software. As this date approaches, updating to SQL Server 2019 or migrating to the cloud is critical for organizations with valuable, sensitive, or business-critical data. Therefore, Microsoft will not patch SQL Server 2012 for new vulnerabilities and will not support organizations experiencing errors or bugs after implementing SQL Server 2012.

Table of Contents

It may seem challenging to migrate business-critical databases because it requires tremendous preparation and expertise. However, you can implement a few best practices to reduce the amount of work involved with SQL Server Migration and, simply put, to reduce the amount of stress.

This article will describe the SQL Server Migration process and how data migration tools, such as Database Migration Assistant Tool, will assist in accessing, planning, for SQL Server Migration.

Table of Contents

  • What is SQL Server Migration?
  • Steps Involved in Migrating Databases
  • SQL Server Migration using Microsoft’s Database Migration Assistant Tool
    • SQL Server Migration: Using Database Migration Assistant
    • SQL Server Migration: The Migration Process
  • Conclusion

What is SQL Server Migration?

Microsoft SQL Server database migration involves moving data to or from a database. Some reasons for moving a database or restoring it include:

  • Moving to a new server.
  • Switching from one instance of SQL to another.
  • Setting up a development server.
  • Restoring a backup database.

Steps Involved in Migrating Databases

Typically, there are four significant steps involved in migrating databases:

  • Extraction: Obtaining data from a source server or database and sending it to an intermediate server.
  • Standardize: Compatibility issues with the data type could be resolved by matching the source to the destination formats, while metadata could be captured accurately.
  • Aggregate and Cleanse: This process entails de-duplicates records and/or calculating derived fields.
  • Load: Moving the processed, aggregated, and transformed data into the target database.

For accurate data migration, each stage must be carefully planned and tested before execution. Unfortunately, this process is quite time-consuming, mainly if you write your own code and stored procedures and design your internal data migration process.

So, a better strategy would be to use an enterprise-grade data migration tool such as Microsoft’s database migration assistant tool (DMA) to save time and reduce the likelihood of errors.

Simplify SQL Server ETL & Data Analysis with Hevo’s No-code Data Pipeline

Hevo Data, a No-code Data Pipeline, helps load data from any data source such as Databases, SaaS applications, Cloud Storage, SDK,s, and Streaming Services and simplifies the ETL process. It supports SQL Server and other 100+ Data Sources including 40+ Free Sources. It is a 3-step process by just selecting the data source, providing valid credentials, and choosing the destination.

Hevo loads the data onto the desired Data Warehouse/destination in real-time and enriches the data and transforms it into an analysis-ready form without having to write a single line of code. Its completely automated pipeline, fault-tolerant, and scalable architecture ensure that the data is handled in a secure, consistent manner with zero data loss and supports different forms of data. The solutions provided are consistent and work with different BI tools as well.

GET STARTED WITH HEVO FOR FREE

Check out why Hevo is the Best:

  • Secure: Hevo has a fault-tolerant architecture that ensures that the data is handled securely and consistently with zero data loss.
  • Schema Management: Hevo takes away the tedious task of schema management & automatically detects the schema of incoming data and maps it to the destination schema.
  • Minimal Learning: Hevo, with its simple and interactive UI, is extremely simple for new customers to work on and perform operations.
  • Hevo Is Built To Scale: As the number of sources and the volume of your data grows, Hevo scales horizontally, handling millions of records per minute with very little latency.
  • Incremental Data Load: Hevo allows the transfer of data that has been modified in real-time. This ensures efficient utilization of bandwidth on both ends.
  • Live Support: The Hevo team is available round the clock to extend exceptional support to its customers through chat, email, and support calls.
  • Live Monitoring: Hevo allows you to monitor the data flow and check where your data is at a particular point in time.

Simplify your Data Analysis with Hevo today!

SIGN UP HERE FOR A 14-DAY FREE TRIAL!

SQL Server Migration using Microsoft’s Database Migration Assistant Tool

Our discussion in this section examines how DMA can be helpful for the initial assessment of SQL Server Migration before it is actually carried out. Using Database Migration Assistant, you can evaluate, plan, and execute an on-premise or cloud upgrade of older versions of SQL Server, starting with SQL Server 2005.

SQL Server Migration: Using Database Migration Assistant

  • After installing DMA, you will see the screen below when you run DMA on either a client or server machine. Then, on the left side of the screen, click the “+” sign. If this is your first time opening the wizard, you must create a new project. The interface at startup looks like this:
A Guide to SQL Server Migration: Made Easy for 2024 - Learn | Hevo (1)
  • Once you click the “+” button, a form for selecting an assessment or migration task will appear. Here we will choose assessment since the migration itself is not yet underway. However, analyzing the reports and examining all the facts are essential steps before starting the actual migration.
  • Select the Assessment option and give it a name to create a project. For example, SQL2K14toSQL2K17 has been used by me.
A Guide to SQL Server Migration: Made Easy for 2024 - Learn | Hevo (2)
  • The next step is to select the type of server you want to use for the source and target:
A Guide to SQL Server Migration: Made Easy for 2024 - Learn | Hevo (3)

Source Server Type refers to the kind of data source you plan to migrate. As you can see, I selected SQL Server. Other data sources can be migrated using the SQL Server Migration Assistant (SSMA) or Azure Database Migration Service (DMS).

Target Server Type specifies the type of SQL Server to use, either SQL Server or Azure SQL Database. I chose SQL Server.

  • Click on the “create” button at the bottom of the screen once you have completed all the options.
A Guide to SQL Server Migration: Made Easy for 2024 - Learn | Hevo (4)
  • If you want to recommend new features and fix compatibility issues, you can check the boxes. There is no check box for Check feature parity when the drop-down selection is selected. If you choose “SQL Server 2017 on Linux” from the drop-down list, the Check feature parity check box will be enabled:
A Guide to SQL Server Migration: Made Easy for 2024 - Learn | Hevo (5)
  • You will need to connect to the Source SQL Server and enter the server details and authentication type. In addition to supplying the required information, you must ensure that the encryption connection is enabled in SQL Server. You will need to uncheck the checkbox on the given screen if the encryption connection is not allowed.
  • At the bottom of the screen, you can see the permissions required for successful assessment on SQL Server instances.
  • To connect the source SQL Server, click the “Connect” button:
A Guide to SQL Server Migration: Made Easy for 2024 - Learn | Hevo (6)
  • When it connects successfully, it will show you all the available databases on the server. First, select the database(s) you want to migrate. Then, depending on your needs, you can either choose one database at a time or all the databases together.
A Guide to SQL Server Migration: Made Easy for 2024 - Learn | Hevo (7)

As part of the assessment, I selected both databases available on my test server. Then, I land on the next screen after clicking the add button, which will begin the migration assessment.

Based on the size and number of databases to be assessed, the assessment may take a while. Therefore, the Database Migration Assistant will take a moment to return the results of this assessment. During that time, you can observe whether a compatibility report will appear or if a feature recommendation will be shown, and whether you will be able to search for specific databases. You can find these filters under the left-hand column:

A Guide to SQL Server Migration: Made Easy for 2024 - Learn | Hevo (8)

As soon as everything is completed, you see that the assessment report is divided into multiple sections.

A visual indicator on the screen immediately lets you know if a database can be migrated (orange rectangle in the following screen capture). Similarly, the tool runs an assessment task for each compatibility level option from the current one to the one corresponding to the destination’s SQL Server version (zone shown in purple on the following screen capture).

In addition, for each compatibility level, we will see what the tool discloses in terms of breaking changes, behavior changes, and deprecated features, and we will be able to click on each discovery to get a more in-depth description, as well as what objects are affected (circled in green in the screenshot). Last but not least, we can perform these three actions in Database Migration Assistant:

  • Start over with the assessment.
  • Delete the assessment results
  • Export the assessment report (as JSON or CSV)
A Guide to SQL Server Migration: Made Easy for 2024 - Learn | Hevo (9)

SQL Server Migration: The Migration Process

  • On the left sidebar, click the “+” button to create a new project, but this time for migration purposes.
A Guide to SQL Server Migration: Made Easy for 2024 - Learn | Hevo (10)
  • We will now click the “Create” button, and we will be directed to a form where we can enter the details of our source and target server connections. Finally, we can click on the “Next” button when we are done.
A Guide to SQL Server Migration: Made Easy for 2024 - Learn | Hevo (11)
  • Again, note the text in the “SQL Server permissions” area that specifies the exact permissions the tool requires to operate as expected. DMA will then ask for a list of databases to migrate if the credentials provided are correct and connect to the source and destination server instances. Using the backup-restore method, Database Migration Assistant will actually do the migration for you: as shown on the following screen.

The following parameters are intrinsic to the technique:

  • The location of the backup files in the shared folder
  • Data files’ destination path
  • The destination of transaction logs
  • The parameters listed here will be applied to all databases in the tree panel on the left. By clicking on a particular database in the tree hierarchy, we can specify different values for these parameters.
A Guide to SQL Server Migration: Made Easy for 2024 - Learn | Hevo (12)
  • On the right side of the screen, we see an option that tells DMA to perform a backup, then copy the backup files to a location accessible by the service account running SQL Server on the destination server.read. Clicking on that checkbox adds the following to the view:
A Guide to SQL Server Migration: Made Easy for 2024 - Learn | Hevo (13)
  • DMA asks us to specify which logins should be kept once we choose the databases to migrate and set the parameters for backup-restore migration. This tool checks for existing logins and tells you whether they are ready to be moved if they already exist or can’t be moved.
A Guide to SQL Server Migration: Made Easy for 2024 - Learn | Hevo (14)
  • We can click the “Start Migration” button once we are ready to begin our migration. You will be pleased to see the following view with 0 failed operations if the migration is successful:
A Guide to SQL Server Migration: Made Easy for 2024 - Learn | Hevo (15)
  • In a “migration details” column, we can check the logging information for each object. Then, whenever something goes wrong (with warnings or errors), we can look at a detailed log:
A Guide to SQL Server Migration: Made Easy for 2024 - Learn | Hevo (16)

Conclusion

Several factors motivate businesses to migrate their SQL databases. It could be for building a new Data Warehouse, overhauling your existing systems, or upgrading your database systems, for example. Therefore, it is imperative to carefully plan and test migrations when migrating data between a source and a target to avoid data loss.

An assessment of SQL Server Migration from an older version of SQL Server to a newer version of SQL Server was discussed in this article. Microsoft’s DMA is an effective tool for evaluating your SQL Server and migrating it to a higher version or newer version that will meet your organization’s requirements. Using this tool, it is possible to migrate to Azure SQL Database or on-premises SQL Server. After you review the published report from DMA and accomplish the remaining tasks of your master migration plan, you can trigger the SQL Server Migration and finish the project.

However, as a Developer, extracting complex data from a diverse set of data sources like Databases, CRMs, Project management Tools, Streaming Services, Marketing Platforms to your SQL Server Database can seem to be quite challenging. This is where a simpler alternative like Hevo can save your day! Hevo Data is a No-Code Data Pipeline that offers a faster way to move data from 100+ Data Sources such as SQL Server and other 40+ Free Sources, into your Data Warehouse to be visualized in a BI tool. Hevo is fully automated and hence does not require you to code.

VISIT OUR WEBSITE TO EXPLORE HEVO

Want to take Hevo for a spin?

SIGN UP and experience the feature-rich Hevo suite first hand. You can also have a look at the unbeatable pricing that will help you choose the right plan for your business needs.

Share your experience of connecting SQL Server Migration in the comments section below!

A Guide to SQL Server Migration: Made Easy for 2024 - Learn | Hevo (17)

Samuel Salimon Freelance Technical Content Writer, Hevo Data

Samuel specializes in freelance writing within the data industry, adeptly crafting informative and engaging content centered on data science by merging his problem-solving skills.

I am Samuel Salimon, a Freelance Technical Content Writer with a deep expertise in the data industry, particularly in SQL Server migration. My extensive knowledge and hands-on experience in this field allow me to provide valuable insights and practical information on the process of migrating databases, especially from SQL Server 2012 to newer versions like SQL Server 2019 or to the cloud.

Now, let's delve into the key concepts covered in the article you provided:

1. What is SQL Server Migration?

  • SQL Server migration involves the movement of data to or from a database, and it can be driven by various reasons such as switching servers, instances, setting up development servers, or restoring backup databases.

2. Steps Involved in Migrating Databases:

  • Extraction: Obtaining data from a source server or database.
  • Standardize: Resolving compatibility issues and capturing metadata accurately.
  • Aggregate and Cleanse: De-duplicating records, calculating derived fields.
  • Load: Moving processed, aggregated, and transformed data into the target database.

3. SQL Server Migration using Microsoft’s Database Migration Assistant Tool:

  • DMA is a tool for assessing, planning, and executing on-premise or cloud upgrades of SQL Server, starting from SQL Server 2005.
  • It provides features like recommending new features, fixing compatibility issues, and checking feature parity.

4. Using Database Migration Assistant:

  • DMA is used for the initial assessment of SQL Server migration before the actual migration.
  • It involves selecting the type of server for source and target, connecting to the source SQL Server, and assessing the databases.

5. SQL Server Migration: The Migration Process:

  • Creating a new project for migration purposes using DMA.
  • Entering details of source and target server connections.
  • Specifying parameters for migration, including backup file locations and logins.
  • Performing the migration and checking the migration details for success.

6. Conclusion:

  • Businesses migrate SQL databases for various reasons like building a new Data Warehouse, overhauling existing systems, or upgrading database systems.
  • Careful planning and testing are crucial to avoid data loss during migration.
  • Microsoft's DMA is an effective tool for evaluating and migrating SQL Server to meet organizational requirements.

Additional Mention:

  • The article also introduces Hevo Data, a No-Code Data Pipeline, as an alternative for simplifying SQL Server ETL & Data Analysis, supporting real-time data loading from various sources.

Feel free to ask if you have specific questions or if there's anything more you'd like to know about SQL Server migration or related topics.

A Guide to SQL Server Migration: Made Easy for 2024 - Learn | Hevo (2024)
Top Articles
Latest Posts
Article information

Author: Nicola Considine CPA

Last Updated:

Views: 6495

Rating: 4.9 / 5 (49 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Nicola Considine CPA

Birthday: 1993-02-26

Address: 3809 Clinton Inlet, East Aleisha, UT 46318-2392

Phone: +2681424145499

Job: Government Technician

Hobby: Calligraphy, Lego building, Worldbuilding, Shooting, Bird watching, Shopping, Cooking

Introduction: My name is Nicola Considine CPA, I am a determined, witty, powerful, brainy, open, smiling, proud person who loves writing and wants to share my knowledge and understanding with you.