Microsoft Company constantly releases updates and new versions of its products and SQL Server Express is no exception, so it is useful for novice administrators to know how this SQL server is updated, and today we will deal with upgrading from SQL Server 2008 Express to SQL Server 2014 Express.

A little about Microsoft SQL Server 2014 Express

SQL Server 2014 Express- This free system data management, which is great for novice programmers and administrators.

This version of SQL Server Express is the latest at the time of writing, and it was published on June 25, 2014, you can download it from the Microsoft download center - http://www.microsoft.com/ru-ru/download/details.aspx?id=42299

We have already touched on the topic of SQL Server Express, namely installing SQL Server 2008 Express and Management studio, and even updated it to SP3 in the material Installing Service Pack 3 (SP3) for MS SQL Server 2008 Express, now it’s time to move on to new ones, current versions SQL server Express, namely the 2014 version.

Note! In previous materials on SQL Server Express, as a test operating system we used Windows Server 2008 R2, today, for a change, we will update the SQL server on the client 32-bit Windows 7 OS.

I also want to note that upgrading SQL Server 2008 Express to version 2014 requires that version 2008 be updated to SP3. If you don’t know whether your SQL server is updated or not, then this is not a problem, you can find out the current version using a simple SQL select query, which is listed just below, to do this, open Management studio, then open the query editor and write the following:

Select @@version

In response you will receive detailed information about the version, for example, I have the version before the update:

Microsoft SQL Server 2008 (SP3) - 10.0.5500.0 (Intel X86) Sep 22 2011 00:28:06 Copyright (c) 1988-2008 Microsoft Corporation Express Edition on Windows NT 6.1 (Build 7601: Service Pack 1)

Which tells me that I can safely start the update, and then we will check what version we have updated to using the same request.

Note! Before starting the update process, it is recommended to install all Latest updates operating system, including Microsoft . NET Framework, or provide Internet access to the computer on which you are going to update SQL Server. I also recommend making an archive of the SQL server database, in case you store important data that you do not want to lose in case of an emergency. critical error in the process of updating.

Upgrading SQL Server 2008 Express to version 2014

Since I already said that I have a 32-bit OS, I go to the link above, click download and select the distribution for 32-bit systems, namely ExpressAndTools 32BIT\SQLEXPRWT_x86_RUS.exe since this distribution contains both the SQL server itself and Management studio, then I click NEXT. Then the download will start, eventually the file will be downloaded SQLEXPRWT_x86_RUS.exe size 888.3 MB.

Step 1

We run the file SQLEXPRWT_x86_RUS.exe and a window will open for you to select a directory into which you need to unpack all the installation files from this distribution. You select the location that is convenient for you, and, by the way, so that this location has at least a couple of gigabytes of free space. And since we're talking about free space, on the disk on which SQL Server 2008 Express is installed you need approximately 2.2 gigabytes additional free space for the 2014 version of SQL server. I selected the test directory on the C drive and clicked "OK"

Step 2

After unpacking, you will immediately start " SQL Server Installation Center", where we select " Upgrade from SQL Server 2005, SQL Server 2008, SQL Server 2008 R2, or SQL Server 2012 to SQL Server 2014»

The following window will appear repeatedly during the installation process, this is normal.

Step 3

At this step you will be asked to agree to the license terms for this software, You naturally agree, check the appropriate box, and click “ Further»

Step 4

And here I want to note that the entire update process takes place almost in automatic mode, the only exceptions are those steps in which your participation is required (to select something) or some warnings arose during the update process, for example, this step will skip you if everything is fine, but everything was fine for me, it skipped, but For clarity, I went back and took a screenshot of the actions that the installation program performed at this step, namely, it checked the global installation rules, i.e. search possible problems problems that may occur during the update.

Step 5

On next step You will be prompted to use the update center to search for important updates, I did not select this item, but you can select it, then click “ Further»

Step 6

This step will also skip if you have the Internet turned on, and if not, then a window will appear (I tried the picture below on another computer specifically), in which you will be asked to “Repeat the check” or skip this step, in principle there is nothing wrong if This window appears, taking into account the fact that you have an updated OS.

Step 7

Installation of the installation files also skips if everything is fine.

Step 8

At this step, the installation program will check the update rules and if any warnings arise, the program will tell you about it, everything is fine for me.

Step 9

On at this stage you need to select an instance of the SQL server to update, if you have several of them, you select the one you need, and since I have only one, I don’t change anything, click “ Further»

Step 10

This step involves selecting the components that need to be updated, but since our distribution includes updating all components at once, this window will skip if certain conditions are met, for example, if you do not have enough disk space to install the update , then the installation program will tell you about this at this step and will not skip it further; for example, you will receive a window like this

Step 11

This step is devoted to another check in which the installer tries to determine whether the update process will be blocked, and for this purpose it checks specifically important conditions, and if everything is fine, then you will skip this window, and if not, the program will issue appropriate warnings. All checks passed successfully and the update started immediately

Step 12

If during the update process you did not encounter any errors, then everything is fine at the end. You will receive a message that you need to reboot, and also that all components have been successfully updated or not updated accordingly.

That’s all that’s left to do: reboot, and then check the operation of the updated DBMS and its controls; for this, we launch a new one Management studio 2014, we check the data if it was there. And of course, we will check the version of both SQL server and Management studio, for this you can click Help->About the program where can you see what it is a new version Management studio

And to check the version of the SQL server, just as before, let’s run a query select @@version and in response we get:

Microsoft SQL Server 2014 - 12.0.2000.8 (Intel X86) Feb 20 2014 19:20:46 Copyright (c) Microsoft Corporation Express Edition on Windows NT 6.1 (Build 7601: Service Pack 1)

I propose to finish here, if you have any questions, ask them in the comments or on our forum. Good luck!

Updating data in the database means changing values ​​in existing records tables. In this case, it is possible to both change the values ​​of fields in a group of rows (even all rows of the table), and edit the value of a field in an individual row.

In SQL, you can change a record in a database table using the UPDATE command. In its most minimal form, the data update command looks like this:

UPDATE table SET field = value

Here, UPDATE– a command indicating that the request is to update data;

table– the name of the table in which changes will be made;

SET– a command followed by comma-separated fields with assigned values;

field– table field to which the change will be made;

meaning– a new value that will be entered into the field.


For example, if you need to set a field in all rows of a table to zero, you can run the following query:

UPDATE goods SET price = 0

In this case, the price field in absolutely all available rows of the table will take the value 0.

Changing one value

Changing the values ​​of all fields in a table is extremely rare. Most often it is necessary to change the value of a specific entry. To do this, at the end of the line with the UPDATE command, a WHERE directive will be added, which specifies a condition that determines which line the update operation should be performed on.

There is a table:

For example, we need to update the cost of a product with its value known to us num. To do this, run the following query:

UPDATE goods SET price = 150 WHERE num = 2

Now, before the operation of changing fields, a row will be selected that satisfies the condition num = 2. There is only one such row in the table. In this stock the price will be changed to the value 150. As a result, we will get a table with the changed price of the product.

Making changes to multiple lines with a selection condition

If you remember all the variety of conditions in the query, you can imagine how diverse the samples can be. Therefore, update queries can be executed either with one row, or with a group of rows, or with all rows of the table. It all depends on the task you are facing, as well as on which table rows you need to perform update operations on.

For example, we want to halve the price of all goods that currently cost 100 or more. Request:

UPDATE goods SET price = price / 2 WHERE price >= 100

Condition WHERE here contains a rule according to which only products with a price equal to or more than 100 will be selected, and those products with a price below 100 will not be affected by the request.

price = price / 2– the formula by which the new price of goods will be calculated. New price will be written equal to old price divided by two.

As a result of executing such a query, we will obtain a table with changed records:

Updating values ​​in multiple row fields

If it is necessary to update several fields at once, all fields with their values ​​are indicated after the SET directive, separated by commas. For example, you need to change the name and price of a product with code 2 to “iron”, costing 300:

UPDATE goods SET title = "iron" , price = 300 WHERE num = 2 !}

This query will assign each matching field in a row its value. And the condition will indicate in which line the changes will be made.


The following are the main types of update operations. Based on them, queries are generated to solve most data modification problems in development using SQL.

The SQL Server Setup Wizard provides an in-place upgrade of all SQL Server components to SQL Server 2016 using a single component tree.

You must run the installer with administrator rights. When installing SQL Server from a remote share, you must use a domain account that has Read and Execute permissions on the remote folder. shared folder and is a local administrator.

If you are upgrading the Database Engine, review the article and complete the following tasks as appropriate for your environment.

    Create backups all database files SQL data Server of updatable instances so that they can be restored if necessary.

    Run the appropriate DBCC commands on the databases you are upgrading to ensure they are in a consistent state.

    Estimate how much disk space, in addition to the user databases, you will need to update SQL Server components. additional information To see how much disk space SQL Server components take up, see .

    Make sure that your existing SQL Server system databases (master, model, msdb, and tempdb) are configured to grow automatically and that you have enough disk space for them.

    Ensure that all database servers have login credentials for the master database. This is important for database recovery because system login credentials are stored in the master database.

    Disable all stored procedures that run at system startup. This is necessary because the upgrade process will stop and start services on the instance of SQL Server that is being upgraded. Stored procedures launched at system startup can block the update process.

    When upgrading SQL Server instances for which SQL Server Agent has detected MSX/TSX relationships, upgrade the target servers before upgrading the master servers. If you upgrade the master servers before the target servers, SQL Server Agent will not be able to connect to the master instances of SQL Server.

    Close all applications and services that have dependencies on SQL Server. If you have on-premises applications connected to the instance you are upgrading, the upgrade process may fail.

    Make sure replication is up to date and stop replication.
    For a detailed description of the rolling update procedure in a replicated environment, see .

Upgrade to SQL Server 2016

    Insert the SQL Server installation media, navigate to the root folder, and double-click Setup.exe. To install from general network resource, go to its root directory and double-click the Setup.exe file.

    The Setup Wizard launches the SQL Server Installation Center. To upgrade an existing instance of SQL Server, click Installation in the left navigation pane, then select Upgrade from SQL Server 2008, SQL Server 2008 R2, SQL Server 2012, or SQL Server 2014.

    On the Product Key page, select an option to indicate whether you are upgrading to the free edition of SQL Server, or whether you have a PID key for working version this product. For more information, see the articles and.

    On the License Terms page, review the license agreement. If you agree with it, check the box I accept the terms license agreement and press the button Further. To help improve SQL Server, you can also enable the feature usage monitoring option and send reports to Microsoft.

    In the Global Rules window, the installation procedure will automatically move to the Product Updates window if there are no rule errors.

    Then the page will appear Microsoft updates, if the Microsoft update checkbox is not selected in the Control Panel\All Control Panel Items\Windows Update\Changes settings. Selecting the checkbox on the Microsoft Updates page will change your computer's settings so that the latest updates are applied when viewed in Windows Update.

    The Product Updates page provides the latest updates to the SQL Server product. If you do not need to install updates, clear the checkbox Enable SQL Server Product Updates. If no product updates are found, SQL Server Setup does not display this page and goes directly to Installing files .

    On the Installation page installation files» The installer displays progress indicators for downloading, extracting, and installing installation files. If a SQL Server Setup update is detected, it will also be installed if it is specified to be used.

    In the Update Rules window, the installation procedure will automatically advance to the Select Instance window if there are no rule errors.

    On the Select Instance page, select the SQL Server instance that you want to upgrade. To update common components and controls, select Update shared components only.

    The Feature Selection page automatically highlights the features that are being updated. After selecting a component, a description of its group is displayed in the right pane of the window.

    The requirements for the selected components are shown in the right pane. SQL Server will install a prerequisite that has not already been installed in the installation step described later in this procedure.

    On the Instance Configuration page, specify the SQL Server instance ID.

    Instance ID- By default, the instance name is used as the instance identifier. Designed to identify installation directories and registry keys for a given instance of SQL Server. Valid for both default and named instances. For the default instance, the instance name and ID is "MSSQLSERVER". To specify a non-default instance ID, enter a value in the Instance ID.

    All SQL Server updates (including service packs) are applied to each component of the SQL Server instance.

    Installed Instances- This grid lists all instances of SQL Server installed on the computer running Setup. Because you already have a default instance on your computer, you must install a named instance of SQL Server 2016.

    The operations remaining in this section depend on which components were selected for installation. Depending on your selection, not all pages may be displayed.

    The Server Configuration: Service Accounts page for SQL Server services displays the default accounts. The services you can configure on this page depend on the features you select for the upgrade.

    Authentication information and logins will be carried over from the previous instance of SQL Server. You can assign one login account to all SQL Server services, or you can configure service accounts individually. You can also specify whether services will start automatically, manually, or be disabled. Microsoft recommends that you configure service accounts individually, giving each SQL Server service the minimum permissions required to perform its tasks. For more information, see .

    To specify one login account for all service accounts on this instance of SQL Server, provide credentials in the fields at the bottom of the page.

    Safety note. Don't use blank passwords. Choose strong passwords.

    After entering your login information for SQL Server services, click Further.

    On the Full Text Search Upgrade Options page, specify upgrade options for the databases you are upgrading. For more information, see .

    If all rules are satisfied, the Component Rules window will automatically change to the following.

    The Upgrade Readiness page displays a tree view of the installation options specified in the installer. To continue, click the button Install. SQL Server first installs the required components for the selected tools, then installs the tools themselves.

    During installation, the installation progress page displays the status of the installation so you can monitor its progress.

    After installation, the Completion page provides a link to the installation summary log file and other important notes. To complete the SQL Server installation process, click Ready.

    If you are prompted to restart your computer, restart. After installation is complete, it is important to read the installation wizard message. For more information about installation log files, see .

After upgrading to SQL Server, complete the following tasks.

    Server registration: The upgrade process removes the registry settings for the previous instance of SQL Server. After the update, you need to re-register the servers.

    Update statistics- To optimize query performance, it is recommended to update statistics for all updated databases. Call the stored procedure sp_updatestats to update statistics in user tables in SQL Server databases.

    Settings new installation SQL Server- To reduce the system's exposure, SQL Server optionally installs and enables key services and features. For more information about setting up the contact zone, see the Readme file for this version.

In this article we will show how upgrade the trial (Evaluation Edition) or Express version of SQL Server 2008 R2 to a full working version of SQL Standard or Enterprise. You may encounter a similar problem when there is no one to test/develop software product The trial version of SQL Server is installed. It often happens that after the end of such testing/the end of the evaluation period, a decision is made to transfer the system into production operation, for which it is necessary to switch to a full-featured edition of SQL Server, but you do not want to reinstall the DBMS.

Note. The instructions also apply to Microsoft SQL Server 2012 and R2.

SQL Server SQL 2008 R2 (and newer versions) trial period is – 180 days. After graduation trial period The SQL Server service stops starting. In the case of SQL Server Express, there is a limit on the size of the database.

You can only upgrade your license license without having to reinstall SQL Server from a junior edition to a higher edition, for example: Evaluation Edition / Express Edition with Advanced Services -> Standard or directly to Enterprise.

After the testing period ends, when you try to open SQL Server Management Studio, an error window appears:

Evaluation period has expired. For information on how to upgrade your evaluation software please go to http://www.microsoft.com/sql/howtobuy

MS SQL Server 2008 R2 edition update

In the first part, we will figure out how to update the version of SQL Server using a license key purchased from Microsoft or partners.

Let's launch the SQL Installation Center (Start -> All Programs -> Microsoft SQL Server 2008 R2 -> Configuration Tools -> SQL Server Installation Center (64-bit)).

Advice. The same window can be opened by running setup.exe with installation disk SQL Server

Let's go to the service section ( Maintenance) and select the item EditionUpgrade(Editorial update). The Edition Upgrade Wizard will launch.

And, following the wizard’s prompts, let’s enter license key SQL Server in the appropriate field.

Then you need to select which copy (instance) of SQL Server you want to update.

The final report will indicate the status of the version upgrade and a link to a detailed text log.

You can check which edition of SQL Server you are using using SQL Server Management Studio by right-clicking on the instance name. In our example, this is SQL Server Enterprise.

The same operation can be performed from command line by running the setup.exe file from the SQL Server distribution disk with the specified parameters.

Setup.exe /Q /ACTION=editionupgrade /INSTANCENAME= /PID=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx /IAcceptSQLServerLicenseTerms /Indicateprogress

Advice. When upgrading the edition from SQL Server Express, you must additionally enable the SQL Server Agent service and use SQL Server Configuration Manager to set service parameters account for the SQL Server Agent service.

Upgrade to the corporate Enterprise version of SQL Server (Volume License)

In the event that you want to upgrade the version of SQL Server you are using using the enterprise program Microsoft licensing, you will be surprised that the Microsoft Volume Licensing Service Center (MS VLSC) does not have keys for SQL Server.

The fact is that the key is integrated directly into the distribution. The most interesting thing is that VLSC support recommends uninstalling the installed SQL Server and reinstalling it using the iso file with the SQL distribution downloaded from VLSC.

Fortunately, it is still possible to obtain the correct key directly from the distribution


Last update: 07/13/2017

To change existing rows in a table, use the UPDATE command. It has the following formal syntax:

UPDATE table_name SET column1 = value1, column2 = value2, ... columnN = valueN

For example, let’s increase the price of all products by 5000:

UPDATE Products SET Price = Price + 5000

Let's use the criterion and change the manufacturer name from "Samsung" to "Samsung Inc.":

UPDATE Products SET Manufacturer = "Samsung Inc." WHERE Manufacturer = "Samsung"

A more complex request - replace the Manufacturer field with the value "Apple" with "Apple Inc." in the first 2 lines:

UPDATE Products SET Manufacturer = "Apple Inc." FROM (SELECT TOP 2 * FROM Products WHERE Manufacturer="Apple") AS Selected WHERE Products.Id = Selected.Id

Using a subquery after keyword FROM retrieves the first two rows containing Manufacturer="Apple". The alias Selected will be defined for this selection. The alias is specified after the AS operator.

Next comes the update condition Products.Id = Selected.Id . That is, in fact, we are dealing with two tables - Products and Selected (which is derived from Products). In Selected there are two first lines with Manufacturer="Apple". In Products - generally all lines. And the update is performed only for those rows that are in the Selected selection. That is, if there are dozens of products in the Products table with the manufacturer Apple, then the update will affect only the first two of them.