Reader small image

You're reading from  SQL Server 2019 Administrator's Guide - Second Edition

Product typeBook
Published inSep 2020
Reading LevelBeginner
PublisherPackt
ISBN-139781789954326
Edition2nd Edition
Languages
Right arrow
Authors (2):
Marek Chmel
Marek Chmel
author image
Marek Chmel

Marek Chmel is a senior CSA at Microsoft, specializing in data and AI. He is a speaker and trainer with more than 15 years' experience. He has been a Data Platform MVP since 2012. He has earned numerous certifications, including Azure Architect, Data Engineer and Scientist Associate, Certified Ethical Hacker, and several eLearnSecurity certifications. Marek earned his master's degree in business and informatics from Nottingham Trent University. He started his career as a trainer for Microsoft Server courses and later worked as SharePoint team lead and principal database administrator. He has authored two books, Hands-On Data Science with SQL Server 2017 and SQL Server 2017 Administrator's Guide.
Read more about Marek Chmel

Vladimír Mužný
Vladimír Mužný
author image
Vladimír Mužný

Vladimír Mužný has been a freelance developer and consultant since 1997. He has been a Data Platform MVP since 2017, and he has earned certifications such as MCSE: Data Management and Analytics and MCT. His first steps with SQL Server were done on version 6.5, and from that time on, he has worked with all following versions of SQL Server. Now Vladimir teaches Microsoft database courses, participates in SQL Server adoption at various companies, and collaborates on projects for production tracking and migrations.
Read more about Vladimír Mužný

View More author details
Right arrow

Chapter 7: Planning Migration and Upgrade

Although this book is about SQL Server 2019, you will not always be working with the latest versions and editions of SQL Server. You may be surprised how many diverse versions of SQL Server are still in production. Quite frequently, you'll face a task of upgrading and migrating the server configuration and content to the new server running the latest version of SQL Server. Each new version of SQL Server brings out many new features that are not available in older versions, and those features may be very useful for your environment to bring better performance, stability, and many other factors to your application. In this chapter, we'll explore the upgrade options for SQL Server and what you have to actually think about during the planning phase of the upgrade. This information will help you in upgrading your SQL Server systems to the latest version in a real environment.

Note

Migration of SQL Server is also usually bound...

The importance of keeping up with latest version

An important reason to upgrade is to continue to obtain the latest support for SQL Server. Once the mainstream support for SQL Server ends, there will be no more service packs or cumulative updates bringing fixes and updates to your current version of SQL Server.

As you can see from the following table, just three SQL Server versions are supported as of now (summer 2020) and those are SQL Server 2016, SQL Server 2017, and the current SQL Server 2019:

Fig. 7.1 – SQL version support end dates

Although many of the older versions are not supported anymore, this does not mean they are not used in production environments. The preceding table does not list all the SQL Server versions. There are even older systems that can be used today, but those fell out of support a long time ago. Also, note that SQL Server 2008 and SQL Server 2008 R2 share an end date for mainstream support, although...

Planning the upgrade

Upgrading a complex infrastructure is not an easy task and should not be executed without any preparation. Careful planning of the required steps will help you eliminate possible issues to the minimum, and the upgrade will run smoothly. Throughout the versions of SQL Server there have been many changes, so it's worth exploring your options when planning the new installation, also from the perspective of the available edition.

While upgrading SQL Server from older versions, you also have to understand changes in the licensing for SQL Server, whereby SQL Server versions 2008 R2 and older used the per-processor licensing model or used a client access license (CAL) licensing model. Starting with SQL Server 2012, Microsoft has moved to core-based licensing, where you need to have a license for each central processing unit (CPU) core used on your operating system.

Note

SQL Server licensing is a very complex topic that goes beyond the scope of...

Performing the upgrade

Once you have finished the planning phase and all the preparations are done, it's time to perform the upgrade/migration of your SQL Server environment. For the scenario used in this chapter, we'll upgrade an existing SQL Server 2016 version to the latest version. One thing you also need to carefully consider is the edition upgrade path that you need to follow.

Note

We will be upgrading to the Enterprise Edition, and the edition will stay the same after the upgrade. You can, however, upgrade between editions. You can find the whole edition and version upgrade matrix on Microsoft's website at https://docs.microsoft.com/en-us/sql/database-engine/install-windows/supported-version-and-edition-upgrades where you can see which versions and editions can be upgraded. 

In the next steps, we will consider the in-place upgrade of the SQL Server environment first. Once we have started the SQL Server setup, the setup program...

Migrating from other platforms

SQL Server migration projects don't necessarily only include SQL Server as a primary data source, but there are many other platforms where you may choose to upgrade to SQL Server. You can use SQL Server Migration Assistant (SSMA), which is available for several Database Management System (DBMS) systems, as follows:

  • SSMA for Access
  • SSMA for DB2
  • SSMA for Oracle
  • SSMA for SAP Adaptive Server Enterprise (SAP ASE)
  • SSMA for MySQL

SSMA is able to create a project for a number of target versions of SQL Server, where SQL Server 2017 is included with both platforms—Linux and Windows operating systems. The other targets available are listed as follows:

  • SQL Server 2008/2008 R2
  • SQL Server 2012
  • SQL Server 2014
  • SQL Server 2016
  • SQL Server 2017 Windows/Linux
  • Azure SQL Database
  • Azure SQL Data Warehouse 

If you would like to use the migration tool, you need...

Summary

Upgrade and migration are important phases in the SQL Server operation life cycle. Each path has its own advantages and disadvantages. As we went through the chapter, you saw that careful planning of such a task is crucial, since there are numerous considerations for the new platform.

In-place upgrades offer you the option to utilize the current hardware of the virtual environment, allowing you to quickly upgrade your SQL Server to new versions. However, this option has more complex rollback if your upgrade fails. With side-by-side migration, you can really use the benefits of the new hardware platform, modern CPUs, and the latest operating system, which will allow you to build the SQL Server again, and then you just need to migrate the data between the old and new SQL Server. There are again numerous options for you, the most common being backup and attach/detach methods. There are many tools that can be used to plan the upgrade—especially SQL Server Data Migration...

lock icon
The rest of the chapter is locked
You have been reading a chapter from
SQL Server 2019 Administrator's Guide - Second Edition
Published in: Sep 2020Publisher: PacktISBN-13: 9781789954326
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Authors (2)

author image
Marek Chmel

Marek Chmel is a senior CSA at Microsoft, specializing in data and AI. He is a speaker and trainer with more than 15 years' experience. He has been a Data Platform MVP since 2012. He has earned numerous certifications, including Azure Architect, Data Engineer and Scientist Associate, Certified Ethical Hacker, and several eLearnSecurity certifications. Marek earned his master's degree in business and informatics from Nottingham Trent University. He started his career as a trainer for Microsoft Server courses and later worked as SharePoint team lead and principal database administrator. He has authored two books, Hands-On Data Science with SQL Server 2017 and SQL Server 2017 Administrator's Guide.
Read more about Marek Chmel

author image
Vladimír Mužný

Vladimír Mužný has been a freelance developer and consultant since 1997. He has been a Data Platform MVP since 2017, and he has earned certifications such as MCSE: Data Management and Analytics and MCT. His first steps with SQL Server were done on version 6.5, and from that time on, he has worked with all following versions of SQL Server. Now Vladimir teaches Microsoft database courses, participates in SQL Server adoption at various companies, and collaborates on projects for production tracking and migrations.
Read more about Vladimír Mužný