Back to Help Center
SQL Server
Activation Guide

Activating SQL Server 2016

6 min czytania·Zaktualizowano dzisiaj

Activating Microsoft SQL Server 2016 Standard

This guide applies exclusively to the activation/licensing of SQL Server 2016 Standard after installation or during an edition change. For SQL Server, the commands slmgr.vbs /ipk and slmgr.vbs /ato known from Windows are not used. Activation is performed through SQL Server Setup and providing the correct product key for the appropriate version and licensing channel.

Important: CAL licenses are not activated with a key. CAL is a legal document/license assigned to an organisation, not a separate activation code entered into the system.

Activating with a Product Key in the GUI

The most common scenario is switching from the Evaluation edition or changing the media to the target SQL Server 2016 Standard.

  1. Log in to the server as an administrator.
  2. Run the SQL Server 2016 media and open Setup.exe.
  3. Select Maintenance.
  4. Click Edition Upgrade.
  5. Specify the instance you want to activate, e.g., MSSQLSERVER.
  6. On the Product Key screen, enter the 25-character product key.
  7. Accept the license terms and complete the wizard.
  8. After completion, the installer will restart the SQL Server services if required.

If the server was deployed from Volume Licensing media, part of the media has the key embedded, and the field may fill in automatically.

Activating from the Command Line

Activation can also be performed without a graphical interface, which is convenient for administrative servers and automation.

Default Instance

D:\Setup.exe /Q /ACTION=EditionUpgrade /INSTANCENAME=MSSQLSERVER /PID=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /IACCEPTSQLSERVERLICENSETERMS

Named Instance

D:\Setup.exe /Q /ACTION=EditionUpgrade /INSTANCENAME=SQL2016 /PID=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /IACCEPTSQLSERVERLICENSETERMS

With a Simple Interface Instead of Full Quiet Mode

D:\Setup.exe /QS /ACTION=EditionUpgrade /INSTANCENAME=MSSQLSERVER /PID=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /IACCEPTSQLSERVERLICENSETERMS

If the command ends with an error, check the logs in the directory:

C:\Program Files\Microsoft SQL Server\130\Setup Bootstrap\Log\

Telephone Activation

For SQL Server 2016 Standard, telephone activation does not work the same way as in Windows through slui. In practice, the phone is used for license verification, key confirmation, reactivation after hardware changes, or explanation of a rejected PID.

Number for Poland: 00 800 121 1654

Before the call, prepare:

  • the full product key,
  • information that it concerns Microsoft SQL Server 2016 Standard,
  • the name of the purchase channel: OEM, Retail, or Volume Licensing,
  • proof of purchase or contract number,
  • server name and information about whether there was a hardware change.

After confirming the license correctness, the consultant usually directs you to reuse the GUI or CMD method, as SQL Server itself is activated through Setup.exe. If you need further assistance, please contact [email protected].

Activation Verification

After completing the activation, you need to confirm that the instance is running as Standard Edition.

Verification via sqlcmd

sqlcmd -S localhost -E -Q "SET NOCOUNT ON; SELECT SERVERPROPERTY('Edition') AS Edition, SERVERPROPERTY('ProductVersion') AS ProductVersion, SERVERPROPERTY('ProductLevel') AS ProductLevel, SERVERPROPERTY('LicenseType') AS LicenseType, SERVERPROPERTY('NumLicenses') AS NumLicenses;"

If you are using a named instance:

sqlcmd -S localhost\SQL2016 -E -Q "SET NOCOUNT ON; SELECT SERVERPROPERTY('Edition') AS Edition, SERVERPROPERTY('ProductVersion') AS ProductVersion, SERVERPROPERTY('ProductLevel') AS ProductLevel, SERVERPROPERTY('LicenseType') AS LicenseType, SERVERPROPERTY('NumLicenses') AS NumLicenses;"

The correct result should show Standard Edition in the Edition column.

Verification with Discovery Report

D:\Setup.exe /Action=RunDiscovery

The report will be saved in:

C:\Program Files\Microsoft SQL Server\130\Setup Bootstrap\Log\<last_session>\

Activation Troubleshooting

Below are the most common, real errors encountered during activation via Edition Upgrade or Setup.exe.

1639

Invalid command line argument.
Most often indicates a typo in the parameter, missing /ACTION=EditionUpgrade, incorrect switch, or incorrect command format.

0x84BB0001

One or more command-line switches were invalid.
Usually occurs with incorrect switches in the command or incorrect combination of /Q, /QS, /PID, /INSTANCENAME parameters.

0x84B10001

There was an error generating the XML document.
Often indicates damaged installation media, problems with the downloaded ISO, or a corrupted previous Setup state.

0x851A0043

The User Data directory in the registry is not valid.
Activation or update may be blocked when the DefaultData registry entry points to a non-existent directory.

0x851A0044

The User Log directory in the registry is not valid.
A similar problem for the DefaultLog path.

2337

Error reading installation files, usually a damaged medium or incomplete installation source. In such a case, activation will not proceed, even if the key is correct.

What to do if the key does not work

First, make sure that the key is for the exact version of the product: SQL Server 2016 Standard. A key from a different version, e.g., 2019 or 2022, will not activate SQL Server 2016.

Also, check:

  • if you are not entering the key into the wrong edition,
  • if the key comes from the correct licensing channel,
  • if there is no mistake in the characters,
  • if the medium and key come from the same distribution type,
  • if the instance is not an unsupported scenario for edition change.

If the key is still being rejected, contact the seller or Microsoft at 00 800 121 1654 and prepare proof of purchase. In practice, the problem is often an incorrect licensing channel or a key for a different version. You can also contact KluczeSoft at [email protected] for assistance.

Reactivation after hardware change

After replacing the main board, migrating a virtualization host, or restoring a server, reactivation may be required. The safest procedure looks like this:

  1. Install the same version of SQL Server 2016.
  2. Run Edition Upgrade.
  3. Enter the same legitimate product key.
  4. Verify the edition using the sqlcmd command.
  5. If the key is rejected after a significant hardware change, call 00 800 121 1654.

Remember that CAL does not require reactivation, as it is not technically activated. It is a licensing compliance element, not an operation performed in Setup.

Summary

Activation of Microsoft SQL Server 2016 Standard takes place through SQL Server Setup, most often using the Edition Upgrade function in the GUI or the Setup.exe /ACTION=EditionUpgrade /PID=... command. For verification, it is best to use sqlcmd and check SERVERPROPERTY('Edition'). If the key does not work, first confirm the version and licensing channel compatibility, and in case of validation problems or after a hardware change, use the Microsoft phone number: 00 800 121 1654.

Microsoft

Microsoft SQL Server 2016 Standard 24 Core

Licencja dożywotniaWysyłka w 1 min
Kup w KluczeSoft

Czy ten artykuł był pomocny?