Imagine that you are using synchronous database mirroring with SQL Server 2005, SQL Server 2008, SQL Server 2008 R2 or SQL Server 2012 Standard Edition. Now, you want to upgrade the instances on both sides of the mirroring partnership to SQL Server Enterprise Edition.\u00a0 This will let you take advantage of some of the valuable Enterprise Edition-only features in that version of SQL Server.\u00a0 These include online index operations, data compression, table partitioning, etc.. How would you go about doing this without having to take a long outage or re-establish your mirroring partnership?<\/p>\n
I had this question come up recently, but I was not 100% sure of the best answer without some testing. Remember, this is going to be a rolling edition<\/span><\/strong> upgrade from SQL Server Standard Edition to SQL Server Enterprise Edition. This is different from a rolling version<\/span><\/strong> upgrade from an older major version of SQL Server to a newer major version of SQL Server. If you need to do a rolling version upgrade, you can use log shipping or database mirroring to get it done with a very short outage.<\/p>\n Here is some guidance from Microsoft about how to do a rolling version upgrade: How to: Minimize Downtime for Mirrored Databases When Upgrading Server Instances<\/a><\/p>\n Let’s cover some background on the terminology that Microsoft uses to differentiate between the different flavors of the SQL Server boxed product.<\/p>\n First, you have the major version<\/span><\/strong> of SQL Server, which could be one of these:<\/p>\n You also have the edition<\/span><\/strong> of SQL Server, which depending on the major version involved could be one of these:<\/p>\n Most people will be dealing with upgrading from SQL Server Standard Edition to SQL Server Enterprise Edition, which is what we will discuss here.<\/p>\n If you need to do a rolling edition upgrade, you need to make sure that you have an existing database mirroring partnership for all of the databases that need to be mirrored between the two instances. This is because SQL Server will prevent you from establishing a new mirroring partnership between databases that are on different editions of SQL Server.<\/p>\n Figure 1 shows the error message that you will get from the \u201cConfigure Database Mirroring Security Wizard\u201d if you try to create a new mirroring partnership between a database on an instance running SQL Server 2008 R2 Standard Edition to a database running on SQL Server 2008 R2 Enterprise Edition.<\/p>\n Figure 1: Error Message When Trying to Create a New Mirroring Partnership between Different Editions of SQL Server<\/strong><\/p>\n This means that you will need an existing mirroring partnership between your databases on the two instances before you attempt to do an Edition Upgrade of SQL Server from Standard Edition to Enterprise Edition. In order to minimize your downtime, and actually perform a rolling edition upgrade, you are going to want to upgrade the mirror instance first. You start this out by running Setup.exe from the SQL Server installation media, and then choosing Maintenance in the left hand pane of the screen, as shown in Figure 2.<\/p>\n Figure 2: Maintenance Screen Showing Edition Upgrade Option<\/strong><\/p>\n After this, you just have to click though several different screens for various setup checks and licensing prompts as shown in Figures 3 through 10. The actual installation portion of the Edition Upgrade will take about 30 seconds. During the install, the mirrored database(s) will go into a disconnected state for about 10 seconds, and then will automatically reconnect and change from a synchronizing to a synchronized state.<\/p>\n Figure 3: Setup Support Rules Screen Results<\/strong><\/p>\n Figure 4: Product Key Screen<\/strong><\/p>\n You will have to enter a valid product key for SQL Server 2008 R2 Enterprise Edition.<\/p>\n Figure 5: License Terms Screen<\/strong><\/p>\n You must accept the license terms in order to proceed.<\/p>\n Figure 6: Select Instance Screen<\/strong><\/p>\n Figure 7: Edition Upgrade Rules Screen<\/strong><\/p>\n Figure 8: Edition Upgrade Detailed Report Screen<\/strong><\/p>\n Figure 9: Ready to Upgrade Edition Screen<\/strong><\/p>\n After you click on Upgrade, it will take about 30 seconds to complete the process<\/p>\n Figure 10: Upgrade Complete Screen<\/strong><\/p>\n Here is what you want to see when you are done with this instance.<\/p>\nSQL Server Versions and Editions<\/h2>\n
\n
\n
<\/a><\/p>\n
<\/a><\/p>\n
<\/a><\/p>\n
<\/a><\/p>\n
<\/a><\/p>\n
<\/a><\/p>\n
<\/a><\/p>\n
<\/a><\/p>\n
<\/a><\/p>\n
<\/a><\/p>\n