You have to install at least one dialog instance for a high-availability configuration. You have the following options to install the dialog instance: You install. The following list shows the configuration of the (A)SCS and ERS load balancer. A Configure the SAP users after the installation. SUCCESS, SAP STATE, ABAP instances with ABAP DIALOG service on multiple hosts,.
-->This article explains how to install SQL Server with the Installation Wizard. It applies to SQL Server 2016 (13.x) and SQL Server 2017 (14.x).
This article provides a step-by-step procedure for installing a new instance of SQL Server by using the SQL Server Setup Installation Wizard. The Installation Wizard provides a single feature tree for installation of all SQL Server components so that you don't have to install them individually. To install the SQL Server components individually, see Install SQL Server.
For other ways to install SQL Server, see:
Get the installation media
The download location for SQL Server depends on the edition:
- SQL Server Enterprise, Standard, and Express Editions are licensed for production use. For the Enterprise and Standard Editions, contact your software vendor for the installation media. You can find purchasing information and a directory of Microsoft partners on the Microsoft purchasing website.
- The latest free edition.
Prerequisites
Before you install SQL Server, review Planning a SQL Server installation.
![Instance Instance](https://labs.tadigital.com/wp-content/uploads/2017/12/Screenshot-93.png)
Note
For local installations, you must run Setup as an administrator. If you install SQL Server from a remote share, you must use a domain account that has read and execute permissions on the remote share.
Install patch requirement
Microsoft has identified a problem with the Microsoft Visual C++ 2013 runtime binaries that are installed as a prerequisite by SQL Server 2016 and 2017. An update is available to fix this problem. If this update to the Visual C++ runtime binaries isn't installed, SQL Server may experience stability issues in certain scenarios. Before you install SQL Server, follow the instructions in the SQL Server release notes to see if your computer requires a patch for the Visual C++ runtime binaries.
This is not applicable to SQL Server 2019 (15.x).
To install SQL Server 2016 and 2017
- Insert the SQL Server installation media. From the root folder, double-click Setup.exe. To install from a network share, locate the root folder on the share, and then double-click Setup.exe.
- The Installation Wizard runs the SQL Server Installation Center. To create a new installation of SQL Server, select Installation in the left navigation area, and then select New SQL Server standalone installation or add features to an existing installation.
- On the Product Key page, select an option to indicate whether you're installing a free edition of SQL Server or a production version that has a PID key. For more information, see Editions and supported features of SQL Server 2017.To continue, select Next.
- On the License Terms page, review the license agreement. If you agree, select the I accept the license terms check box, and then select Next.NoteSQL Server transmits information about your installation experience, as well as other usage and performance data to help Microsoft improve the product. To learn more about SQL Server data processing and privacy controls, see the privacy statement and Configure SQL Server to send feedback to Microsoft.
- In the Global Rules page, Setup will automatically advance to the Product Updates page if there are no rule errors.
- The Microsoft Update page will appear next if the Microsoft Update check box in Control Panel > All Control Panel Items > Windows Update > Change settings isn't selected. Selecting the Microsoft Update check box changes the computer settings to include the latest updates for all Microsoft products when you scan for Windows updates.
- On the Product Updates page, the latest available SQL Server product updates are displayed. If no product updates are discovered, Setup doesn't display this page and automatically advances to the Install Setup Files page.
- On the Install Setup Files page, Setup provides the progress of downloading, extracting, and installing the Setup files. If an update for Setup is found and you specify to include it, that update will also be installed. If no update is found, Setup will automatically advance.
- On the Install Rules page, Setup checks for potential problems that might occur while running Setup. If failures occur, select an item in the Status column for more information. Otherwise, select Next.
- If this is the first installation of SQL Server on the machine, Setup skips the Installation Type page and goes directly to the Feature Selection page. If SQL Server is already installed on the system, you can use the Installation Type page to select either to perform a new installation or to add features to an existing installation. To continue, select Next.
- On the Feature Selection page, select the components for your installation. For example, to install a new instance of SQL Server Database Engine, select Database Engine Services.A description for each component group appears in the Feature description pane after you select the feature name. You can select any combination of check boxes. For more information, see Editions and components of SQL Server 2016 or Editions and components of SQL Server 2017.The prerequisites for the selected features are displayed in the Prerequisites for selected features pane. Setup installs the prerequisites that aren't already installed during the installation step described later in this procedure.You can also specify a custom directory for shared components by using the field at the bottom of the Feature Selection page. To change the installation path for shared components, either update the path in the field at the bottom of the dialog box or select Browse to go to an installation directory. The default installation path is C:Program FilesMicrosoft SQL Servernnn.NoteThe path specified for the shared components must be an absolute path. The folder must not be compressed or encrypted. Mapped drives aren't supported.SQL Server uses two directories for shared features:
- Shared feature directory
- Shared feature directory (x86)
NoteThe path specified for each of the above options must be different. - The Feature Rules page automatically advances if all rules pass.
- On the Instance Configuration page, specify whether to install a default instance or a named instance. For more information, see Instance configuration.
- Instance ID: By default, the instance name is used as the instance ID. This ID is used to identify the installation directories and registry keys for your instance of SQL Server. The same behavior occurs for default instances and named instances. For a default instance, the instance name and instance ID are MSSQLSERVER. To use a nondefault instance ID, specify a different value in the Instance ID text box.NoteTypical standalone instances of SQL Server, whether default or named instances, don't use a nondefault value for the instance ID.All SQL Server service packs and upgrades apply to every component of an instance of SQL Server.
- Installed instances: The grid shows the instances of SQL Server that are on the computer where Setup is running. If a default instance is already installed on the computer, you must install a named instance of SQL Server.
The workflow for the rest of the installation depends on the features that you've specified for your installation. Depending on your selections, you might not see all the pages. - Selecting to install the Polybase feature will add the PolyBase Configuration page to the SQL Server setup, displayed after the Instance Configuration page. PolyBase requires the Oracle JRE 7 Update 51 (at least), and if this hasn't already been installed, your installation will be blocked. On the Polybase Configuration page, you can choose to use the SQL Server as a standalone Polybase-enabled instance, or you can use this SQL Server as part of a PolyBase scale-out group. If you choose to use the scale-out group, you will need to specify a port range of up to 6 or more ports.
- Use the Server Configuration - Service Accounts page to specify the logon accounts for SQL Server services. The actual services that you configure on this page depend on the features that you selected to install. For more information about configuration settings, see Installation Wizard help.You can assign the same logon account to all SQL Server services, or you can configure each service account individually. You can also specify whether services start automatically, start manually, or are disabled. We recommend you configure service accounts individually to provide the least privileges for each service. Make sure SQL Server services are granted the minimum permissions they must have to complete their tasks. For more information, see Configure Windows service accounts and permissions.To specify the same logon account for all service accounts in this instance of SQL Server, provide the credentials in the fields at the bottom of the page.ImportantDo not use a blank password. Use a strong password.NoteStarting with SQL Server 2016 (13.x), select the Grant Perform Volume Maintenance Task privilege to SQL Server Database Engine Service check box to allow the SQL Server Database Engine service account to use database instant file initialization.
- Use the Server Configuration - Collation page to specify non-default collations for the Database Engine and Analysis Services.The default installation setting is determined by the operating system (OS) locale. The server-level collation can either be changed during setup, or by changing the OS locale before installation. The default collation is set to the oldest available version that is associated with each specific locale. This is due to backwards compatibility reasons. Therefore, this is not always the recommended collation. To take full advantage of SQL Server features, change the default installation settings to use Windows collations. For example, for the OS locale English (United States) (code page 1252), the default collation during setup is SQL_Latin1_General_CP1_CI_AS and can be changed to its closest Windows collation counterpart Latin1_General_100_CI_AS_SC.For more information, see Collations and Unicode support.
- Use the Database Engine Configuration - Server Configuration page to specify the following options:
- Security Mode: Select Windows Authentication or Mixed Mode Authentication for your instance of SQL Server. If you select Mixed Mode Authentication, you must provide a strong password for the built-in SQL Server system administrator account.After a device establishes a successful connection to SQL Server, the security mechanism is the same for both Windows authentication and mixed mode authentication. For more information, see Database Engine Configuration - Server Configuration page.
- SQL Server Administrators: You must specify at least one system administrator for the instance of SQL Server. To add the account under which SQL Server Setup is running, select Add Current User. To add or remove accounts from the list of system administrators, select Add or Remove, and then edit the list of users, groups, or computers that have administrator privileges for the instance of SQL Server.
Use the Database Engine Configuration - Data Directories page to specify nondefault installation directories. To install to the default directories, select Next.ImportantIf you specify nondefault installation directories, ensure that the installation folders are unique to this instance of SQL Server. None of the directories in this dialog box should be shared with directories from other instances of SQL Server.For more information, see Database Engine Configuration - Data Directories page.Use the Database Engine Configuration - TempDB page to configure the file size, number of files, nondefault installation directories, and file-growth settings for tempdb. For more information, see Database Engine Configuration - TempDB page.Use the Database Engine Configuration - FILESTREAM page to enable FILESTREAM for your instance of SQL Server. For more information, see Database Engine Configuration - FILESTREAM page. - Use the Analysis Services Configuration - Account Provisioning page to specify the server mode and the users or accounts that have administrator permissions for Analysis Services. The server mode determines which memory and storage subsystems are used on the server. Different solution types run in different server modes. If you plan to run multidimensional cube databases on the server, select the default server mode option, Multidimensional and Data Mining.You must specify at least one system administrator for Analysis Services:
- To add the account under which SQL Server Setup is running, select Add Current User.
- To add or remove accounts from the list of system administrators, select Add or Remove, and then edit the list of users, groups, or computers that have administrator privileges for Analysis Services.
For more information about server mode and administrator permissions, see Analysis Services Configuration - Account Provisioning page.When you're finished editing the list, select OK. Verify the list of administrators in the configuration dialog box. After the list is complete, select Next.Use the Analysis Services Configuration - Data Directories page to specify nondefault installation directories. To install to the default directories, select Next.ImportantWhen installing SQL Server, if you specify the same directory path for INSTANCEDIR and SQLUSERDBDIR, SQL Server Agent and Full Text Search won't start due to missing permissions.If you specify nondefault installation directories, ensure that the installation folders are unique to this instance of SQL Server. None of the directories in this dialog box should be shared with directories from other instances of SQL Server.For more information, see Analysis Services Configuration - Data Directories page. - Use the Distributed Replay Controller Configuration page to specify the users you want to grant administrative permissions to for the Distributed Replay controller service. Users that have administrative permissions have unlimited access to the Distributed Replay controller service.
- To grant access permissions for the Distributed Replay controller service to the user who's running SQL Server Setup, select the Add Current User button.
- To grant access permissions for the Distributed Replay controller service to other users, select the Add button.
- To remove access permissions from the Distributed Replay controller service, select the Remove button.
- To continue, select Next.
- Use the Distributed Replay Client Configuration page to specify the users you want to grant administrative permissions to for the Distributed Replay client service. Users that have administrative permissions have unlimited access to the Distributed Replay client service.
- Controller Name is optional. The default value is <blank>. Enter the name of the controller that the client computer will communicate with for the Distributed Replay client service:
- If you've already set up a controller, enter the name of the controller while configuring each client.
- If you haven't yet set up a controller, you can leave the controller name blank. However, you must manually enter the controller name in the client configuration file.
- Specify the Working Directory for the Distributed Replay client service. The default working directory is <drive letter>:Program FilesMicrosoftSQL ServerDReplayClientWorkingDir.
- Specify the Result Directory for the Distributed Replay client service. The default result directory is <drive letter>:Program FilesMicrosoftSQL ServerDReplayClientResultDir.
- To continue, select Next.
- The Ready to Install page shows a tree view of the installation options that you specified during Setup. On this page, Setup indicates whether the Product Update feature is enabled or disabled and the final update version.To continue, select Install. SQL Server Setup first installs the required prerequisites for the selected features, then it installs the selected features.
- During installation, the Installation Progress page provides status updates so that you can monitor the installation progress as Setup continues.
- After installation, the Complete page provides a link to the summary log file for the installation and other important notes.ImportantMake sure you read the message from the Installation Wizard when you've finished with Setup. For more information, see View and read SQL Server Setup log files.To complete the SQL Server installation process, select Close.
- If you're instructed to restart the computer, do so now.
To install SQL Server 2019
- Insert the SQL Server installation media. From the root folder, double-click Setup.exe. To install from a network share, locate the root folder on the share, and then double-click Setup.exe.
- The Installation Wizard runs the SQL Server Installation Center. To create a new installation of SQL Server, select Installation in the left navigation area, and then select New SQL Server standalone installation or add features to an existing installation.
- On the Product Key page, select an option to indicate whether you're installing a free edition of SQL Server or a production version that has a PID key. For more information, see Editions and supported features of SQL Server 2017.To continue, select Next.
- On the License Terms page, review the license agreement. If you agree, select the I accept the license terms and privacy statement check box, and then select Next.NoteSQL Server transmits information about your installation experience, as well as other usage and performance data to help Microsoft improve the product. To learn more about SQL Server data processing and privacy controls, see the privacy statement and Configure SQL Server to send feedback to Microsoft.
- In the Global Rules page, Setup will automatically advance to the Product Updates page if there are no rule errors.
- The Microsoft Update page will appear next if the Microsoft Update check box in Control Panel > All Control Panel Items > Windows Update > Change settings isn't selected. Selecting the Microsoft Update check box changes the computer settings to include the latest updates for all Microsoft products when you scan for Windows updates.
- On the Product Updates page, the latest available SQL Server product updates are displayed. If no product updates are discovered, Setup doesn't display this page and automatically advances to the Install Setup Files page.
- On the Install Setup Files page, Setup provides the progress of downloading, extracting, and installing the Setup files. If an update for Setup is found and you specify to include it, that update will also be installed. If no update is found, Setup will automatically advance.
- On the Install Rules page, Setup checks for potential problems that might occur while running Setup. If failures occur, select an item in the Status column for more information. Otherwise, select Next.
- If this is the first installation of SQL Server on the machine, Setup skips the Installation Type page and goes directly to the Feature Selection page. If SQL Server is already installed on the system, you can use the Installation Type page to select either to perform a new installation or to add features to an existing installation. To continue, select Next.
- On the Feature Selection page, select the components for your installation. For example, to install a new instance of SQL Server Database Engine, select Database Engine Services.A description for each component group appears in the Feature description pane after you select the feature name. You can select any combination of check boxes. For more information, see Editions and components of SQL Server 2016 or Editions and components of SQL Server 2017.The prerequisites for the selected features are displayed in the Prerequisites for selected features pane. Setup installs the prerequisites that aren't already installed during the installation step described later in this procedure.You can also specify a custom directory for shared components by using the field at the bottom of the Feature Selection page. To change the installation path for shared components, either update the path in the field at the bottom of the dialog box or select Browse to go to an installation directory. The default installation path is C:Program FilesMicrosoft SQL Servernnn.NoteThe path specified for the shared components must be an absolute path. The folder must not be compressed or encrypted. Mapped drives aren't supported.SQL Server uses two directories for shared features:
- Shared feature directory
- Shared feature directory (x86)
NoteThe path specified for each of the above options must be different. - The Feature Rules page automatically advances if all rules pass.
- On the Instance Configuration page, specify whether to install a default instance or a named instance. For more information, see Instance configuration.
- Instance ID: By default, the instance name is used as the instance ID. This ID is used to identify the installation directories and registry keys for your instance of SQL Server. The same behavior occurs for default instances and named instances. For a default instance, the instance name and instance ID are MSSQLSERVER. To use a nondefault instance ID, specify a different value in the Instance ID text box.NoteTypical standalone instances of SQL Server, whether default or named instances, don't use a nondefault value for the instance ID.All SQL Server service packs and upgrades apply to every component of an instance of SQL Server.
- Installed instances: The grid shows the instances of SQL Server that are on the computer where Setup is running. If a default instance is already installed on the computer, you must install a named instance of SQL Server.
The workflow for the rest of the installation depends on the features that you've specified for your installation. Depending on your selections, you might not see all the pages. - Starting with SQL Server 2019 (15.x), Polybase no longer requires that Oracle JRE 7 Update 51 (at least) be pre-installed on the computer prior to installing the feature. Selecting to install the Polybase feature will add the Java Install Location page to the SQL Server setup displayed after the Instance Configuration page. On the Java Install Location page, you can choose to install the Azul Zulu Open JRE included with the SQL Server 2019 (15.x) installation, or provide a location of a different JRE or JDK that has already been installed on the computer.
- Starting with SQL Server 2019 (15.x), Java has been added with Language Extensions. Selecting to install the Java feature will add the Java Install Location page to the SQL Server setup dialog window, displayed after the Instance Configuration page. On the Java Install Location page, you can choose to install the Zulu Open JRE included with the SQL Server 2019 (15.x) installation, or provide a location of a different JRE or JDK that has already been installed on the computer.
- Use the Server Configuration - Service Accounts page to specify the logon accounts for SQL Server services. The actual services that you configure on this page depend on the features that you selected to install. For more information about configuration settings, see Installation Wizard help.You can assign the same logon account to all SQL Server services, or you can configure each service account individually. You can also specify whether services start automatically, start manually, or are disabled. We recommend you configure service accounts individually to provide the least privileges for each service. Make sure SQL Server services are granted the minimum permissions they must have to complete their tasks. For more information, see Configure Windows service accounts and permissions.To specify the same logon account for all service accounts in this instance of SQL Server, provide the credentials in the fields at the bottom of the page.ImportantDo not use a blank password. Use a strong password.NoteStarting with SQL Server 2016 (13.x), select the Grant Perform Volume Maintenance Task privilege to SQL Server Database Engine Service check box to allow the SQL Server Database Engine service account to use database instant file initialization.Use the Server Configuration - Collation page to specify nondefault collations for the Database Engine and Analysis Services. For more information, see Collations and Unicode support.
- Use the Database Engine Configuration - Server Configuration page to specify the following options:
- Security Mode: Select Windows Authentication or Mixed Mode Authentication for your instance of SQL Server. If you select Mixed Mode Authentication, you must provide a strong password for the built-in SQL Server system administrator account.After a device establishes a successful connection to SQL Server, the security mechanism is the same for both Windows authentication and mixed mode authentication. For more information, see Database Engine Configuration - Server Configuration page.
- SQL Server Administrators: You must specify at least one system administrator for the instance of SQL Server. To add the account under which SQL Server Setup is running, select Add Current User. To add or remove accounts from the list of system administrators, select Add or Remove, and then edit the list of users, groups, or computers that have administrator privileges for the instance of SQL Server.
Use the Database Engine Configuration - Data Directories page to specify nondefault installation directories. To install to the default directories, select Next.ImportantIf you specify nondefault installation directories, ensure that the installation folders are unique to this instance of SQL Server. None of the directories in this dialog box should be shared with directories from other instances of SQL Server.For more information, see Database Engine Configuration - Data Directories page.Use the Database Engine Configuration - TempDB page to configure the file size, number of files, nondefault installation directories, and file-growth settings for tempdb. For more information, see Database Engine Configuration - TempDB page.Use the Database Engine Configuration - MaxDOP page to specify your max degree of parallelism. This setting determines how many processors a single statement can use during execution. The recommended value is automatically calculated during installation.NoteThis page is only available in Setup starting with SQL Server 2019 (15.x).For more information, see the Database Engine Configuration - MaxDOP page.Use the Database Engine Configuration - Memory page to specify the min server memory and max server memory values that this instance of SQL Server will use after startup. You can use the default values, use the calculated recommended values, or manually specify your own values after you've chosen the Recommended option.NoteThis page is only available in Setup starting with SQL Server 2019 (15.x).For more information, see the Database Engine Configuration - Memory page.Use the Database Engine Configuration - FILESTREAM page to enable FILESTREAM for your instance of SQL Server. For more information, see Database Engine Configuration - FILESTREAM page. - Use the Analysis Services Configuration - Account Provisioning page to specify the server mode and the users or accounts that have administrator permissions for Analysis Services. The server mode determines which memory and storage subsystems are used on the server. Different solution types run in different server modes. If you plan to run multidimensional cube databases on the server, select the default server mode option, Multidimensional and Data Mining.You must specify at least one system administrator for Analysis Services:
- To add the account under which SQL Server Setup is running, select Add Current User.
- To add or remove accounts from the list of system administrators, select Add or Remove, and then edit the list of users, groups, or computers that have administrator privileges for Analysis Services.
For more information about server mode and administrator permissions, see Analysis Services Configuration - Account Provisioning page.When you're finished editing the list, select OK. Verify the list of administrators in the configuration dialog box. After the list is complete, select Next.Use the Analysis Services Configuration - Data Directories page to specify nondefault installation directories. To install to the default directories, select Next.ImportantWhen installing SQL Server, if you specify the same directory path for INSTANCEDIR and SQLUSERDBDIR, SQL Server Agent and Full Text Search won't start due to missing permissions.If you specify nondefault installation directories, ensure that the installation folders are unique to this instance of SQL Server. None of the directories in this dialog box should be shared with directories from other instances of SQL Server.For more information, see Analysis Services Configuration - Data Directories page. - Use the Distributed Replay Controller Configuration page to specify the users you want to grant administrative permissions to for the Distributed Replay controller service. Users that have administrative permissions have unlimited access to the Distributed Replay controller service.
- To grant access permissions for the Distributed Replay controller service to the user who's running SQL Server Setup, select the Add Current User button.
- To grant access permissions for the Distributed Replay controller service to other users, select the Add button.
- To remove access permissions from the Distributed Replay controller service, select the Remove button.
- To continue, select Next.
- Use the Distributed Replay Client Configuration page to specify the users you want to grant administrative permissions to for the Distributed Replay client service. Users that have administrative permissions have unlimited access to the Distributed Replay client service.
- Controller Name is optional. The default value is <blank>. Enter the name of the controller that the client computer will communicate with for the Distributed Replay client service:
- If you've already set up a controller, enter the name of the controller while configuring each client.
- If you haven't yet set up a controller, you can leave the controller name blank. However, you must manually enter the controller name in the client configuration file.
- Specify the Working Directory for the Distributed Replay client service. The default working directory is <drive letter>:Program FilesMicrosoftSQL ServerDReplayClientWorkingDir.
- Specify the Result Directory for the Distributed Replay client service. The default result directory is <drive letter>:Program FilesMicrosoftSQL ServerDReplayClientResultDir.
- To continue, select Next.
- The Ready to Install page shows a tree view of the installation options that you specified during Setup. On this page, Setup indicates whether the Product Update feature is enabled or disabled and the final update version.To continue, select Install. SQL Server Setup first installs the required prerequisites for the selected features, then it installs the selected features.
- During installation, the Installation Progress page provides status updates so that you can monitor the installation progress as Setup continues.
- After installation, the Complete page provides a link to the summary log file for the installation and other important notes.ImportantMake sure you read the message from the Installation Wizard when you've finished with Setup. For more information, see View and read SQL Server Setup log files.To complete the SQL Server installation process, select Close.
- If you're instructed to restart the computer, do so now.
Next steps
Configure your new SQL Server installation.
To reduce the attackable surface area of a system, SQL Server selectively installs and enables key services and features. For more information, see Surface area configuration.
See also
-->![Steps Steps](/uploads/1/2/5/8/125849879/923439739.png)
After you install Distributed Replay you must modify the Distributed Replay controller and client services accounts.
To complete the post-installation steps
- Create firewall rules: On the controller and client computers, you must allow inbound traffic through the firewall for the corresponding service. Specify the firewall rules for the service executables, located in the installation folders.
- For the controller service, create a rule for DReplayController.exe, located in the installation folder. For example, the following command enables this rule, where
%InstallPath%
is the installation folder of the service:netsh advfirewall firewall add rule name='allow dreplay controller' dir=in program='%InstallPath%DReplayControllerDReplayController.exe' action=allow
- For the client service, on each client computer, create a rule for DReplayClient.exe, located in the installation folder. For example, the following command enables this rule, where
%InstallPath%
is the installation folder of the service:netsh advfirewall firewall add rule name='allow dreplay client' dir=in program='%InstallPath%DReplayClientDReplayClient.exe' action=allow
- Grant each client permissions on the target server: After you have completed installing the client service on the client computers, you must manually add the client service accounts to the sysadmin role on the target instance of SQL Server.
.NET Framework Security
You must have administrative permissions in order to install any of the Distributed Replay features. Only a SQL Server login having sysadmin permissions can add the client service accounts to the sysadmin server role of the test server. For more information about Distributed Replay security considerations, see Distributed Replay Security.