Skip to content

Latest commit

 

History

History
63 lines (47 loc) · 5.37 KB

File metadata and controls

63 lines (47 loc) · 5.37 KB
title Installing Updates from the Command Prompt | Microsoft Docs
ms.custom
ms.date 03/14/2017
ms.prod sql-server-2016
ms.reviewer
ms.suite
ms.technology
database-engine
ms.tgt_pltfrm
ms.topic article
ms.assetid bc98ba2b-aae9-4d01-aa85-d4c36428cb0b
caps.latest.revision 18
author MikeRayMSFT
ms.author mikeray
manager jhubbard

Installing Updates from the Command Prompt

Test and modify installation scripts to meet the needs of your organization.

Sample Syntax for Installation

The name of the update package can vary and may include a language, edition, and processor component. Apply an update at a command prompt, replacing <package_name> with the name of your update package:

  • Update a single instance of [!INCLUDEssNoVersion] and all shared components, like [!INCLUDEssISnoversion] and Management Tools: You can specify the instance either by using the InstanceName parameter or the InstanceID parameter. To update a prepared instance of [!INCLUDEssNoVersion], you must specify the InstanceID parameter<package_name>.exe /qs /IAcceptSQLServerLicenseTerms /Action=/proxy/https/github.com/MicrosoftDocs/sql-docs/blob/806d7cfa51a6cd4de4e36aae3e832cc053c19f8a/docs/database-engine/install-windows/Patch /InstanceName=MyInstance or <package_name>.exe /qs /IAcceptSQLServerLicenseTerms /Action=/proxy/https/github.com/MicrosoftDocs/sql-docs/blob/806d7cfa51a6cd4de4e36aae3e832cc053c19f8a/docs/database-engine/install-windows/Patch /InstanceID=<Instance ID>.

  • Setup can integrate the latest product updates with the main product installation so that the main product and its applicable updates are installed at the same time. You can prepare an installation of database engine instance to include product update: setup.exe /q /IAcceptSQLServerLicenseTerms /ACTION=/proxy/https/github.com/MicrosoftDocs/sql-docs/blob/806d7cfa51a6cd4de4e36aae3e832cc053c19f8a/docs/database-engine/install-windows/PrepareImage /UpdateEnabled=True /UpdateEnabled=True /UpdateSource=<path where the update is downloaded> /INSTANCEID=<Instance ID> /FEATURES=SQLEngine.

  • Update [!INCLUDEssNoVersion] shared components only, like [!INCLUDEssISnoversion] and Management Tools: <package_name>.exe /qs /IAcceptSQLServerLicenseTerms /Action=/proxy/https/github.com/MicrosoftDocs/sql-docs/blob/806d7cfa51a6cd4de4e36aae3e832cc053c19f8a/docs/database-engine/install-windows/Patch%3C/p>

  • Update all instances of [!INCLUDEssNoVersion] on the computer and all shared components, like [!INCLUDEssISnoversion] and Management Tools: <package_name>.exe /qs /IAcceptSQLServerLicenseTerms /Action=/proxy/https/github.com/MicrosoftDocs/sql-docs/blob/806d7cfa51a6cd4de4e36aae3e832cc053c19f8a/docs/database-engine/install-windows/Patch /AllInstances.

Remove an update from the command prompt replacing <package_name> with the name of your update package:

  • Remove an update from a single instance of [!INCLUDEssNoVersion] and all shared components, like [!INCLUDEssISnoversion] and Management Tools: <package_name>.exe /qs /Action=/proxy/https/github.com/MicrosoftDocs/sql-docs/blob/806d7cfa51a6cd4de4e36aae3e832cc053c19f8a/docs/database-engine/install-windows/RemovePatch /InstanceName=MyInstance.

  • Remove an update from [!INCLUDEssNoVersion] shared components only, like [!INCLUDEssISnoversion] and Management Tools: <package_name>.exe /qs /Action=/proxy/https/github.com/MicrosoftDocs/sql-docs/blob/806d7cfa51a6cd4de4e36aae3e832cc053c19f8a/docs/database-engine/install-windows/RemovePatch%3C/p>

    [!NOTE]
    The update installer ensures that the shared components are always at or above the version of the instance at the highest level.

Supported Command Prompt Parameters

Important

When possible, supply security credentials at run time. If you must store credentials in a script file, secure the file to prevent unauthorized access.

Switch Description
/? Displays unattended installation command prompt help
/action=/proxy/https/github.com/MicrosoftDocs/sql-docs/blob/806d7cfa51a6cd4de4e36aae3e832cc053c19f8a/docs/database-engine/install-windows/Patch or /action=/proxy/https/github.com/MicrosoftDocs/sql-docs/blob/806d7cfa51a6cd4de4e36aae3e832cc053c19f8a/docs/database-engine/install-windows/RemovePatch%3C/strong> Specifies the installation action: Patch or RemovePatch.
/allinstances Applies the [!INCLUDEssNoVersion] update to all instances of [!INCLUDEssNoVersion] and to all [!INCLUDEssNoVersion] shared, instance-unaware components.
/instancename=InstanceName* Applies the [!INCLUDEssNoVersion] update to an instance of [!INCLUDEssNoVersion] named InstanceName, and to all [!INCLUDEssNoVersion] shared, instance-unaware components.
/InstanceID=Inst1 Applies the [!INCLUDEssNoVersion] update to an instance of [!INCLUDEssNoVersion] Inst1, and to all [!INCLUDEssNoVersion] shared, instance-unaware components.
/quiet Runs the [!INCLUDEssNoVersion] update Setup in unattended mode.
/qs Displays only the progress UI dialog.
/UpdateEnabled Specifies whether [!INCLUDEssNoVersion] setup should discover and include product updates. The valid values are True and False or 1 and 0. By default, [!INCLUDEssNoVersion] setup will include updates that are found.
/IAcceptSQLServerLicenseTerms Required only when the /Q or /QS parameter is specified for unattended installations.

*You cannot specify this parameter to apply an update to a prepared instance of [!INCLUDEssNoVersion]. You must specify the /instanceID parameter instead.

See Also

Overview of SQL Server Servicing Installation