Installing SQL Server 2016 on Windows Server 2016
Installing SQL Server 2016 on Windows Server 2016. It is not much different from previous versions of SQL Server or on previous version of Windows.
But SQL Management Studio needs to be installed separately now from standalone SQL Server Installer. The idea behind is you don’t need to have SQL Management Studio on all servers, as you can remotely access it from your machine or machine with SQL Management Studio installed.
SQL Server installation is almost same, so I will be using the Configuration file to do so.
There are two ways you can install the SQL Server, one using command line with configuration file or manually using GUI.
Keep in mind that SQL Server Management Tools are installed separate and are not part of I have no issues installing or not installing on the same server. It is up-to your requirements whether you want to install or not, But I will be covering in this series for sure.
Install SQL Server 2016 from command line
Run the following command to install it automatically using the Configuration File
You can save the following code in bat file and execute from there.
FOR /F %%p IN (‘cd’) DO SET CurrentPath=%%p
Echo Installing SQL Server
“%CurrentPath%\Microsoft SQL Server 2016\setup.exe” /Configurationfile=”%CurrentPath%\SQLServer2016InstallationConfigFile.ini” /IAcceptSQLServerLicenseTerms
Change your folder location to suit your setup.
Remember SQLServer2016InstallationConfigFile.ini file is the Configuration file saved with answers.
Here is the Template for Configuration file, just save it to a file and use happily.
;SQL Server 2016 Configuration File
; Specifies a Setup work flow, like INSTALL, UNINSTALL, or UPGRADE. This is a required parameter.
; Specifies that SQL Server Setup should not display the privacy statement when ran from the command line.
; Use the /ENU parameter to install the English version of SQL Server on your localized Windows operating system.
; Setup will not display any user interface.
; Setup will display progress only, without any user interaction.
; Parameter that controls the user interface behavior. Valid values are Normal for the full UI,AutoAdvance for a simplied UI, and EnableUIOnServerCore for bypassing Server Core setup GUI block.
; Specify whether SQL Server Setup should discover and include product updates. The valid values are True and False or 1 and 0. By default SQL Server Setup will include updates that are found.
; If this parameter is provided, then this computer will use Microsoft Update to check for updates.
; Specifies features to install, uninstall, or upgrade. The list of top-level features include SQL, AS, RS, IS, MDS, and Tools. The SQL feature will install the Database Engine, Replication, Full-Text, and Data Quality Services (DQS) server. The Tools feature will install shared components.
; Specify the location where SQL Server Setup will obtain product updates. The valid values are “MU” to search Microsoft Update, a valid folder path, a relative path such as .\MyUpdates or a UNC share. By default SQL Server Setup will search Microsoft Update or a Windows Update service through the Window Server Update Services.
; Displays the command line parameters usage
; Specifies that the detailed Setup log should be piped to the console.
; Specifies that Setup should install into WOW64. This command line argument is not supported on an IA64 or a 32-bit system.
; Specify a default or named instance. MSSQLSERVER is the default instance for non-Express editions and SQLExpress for Express editions. This parameter is required when installing the SQL Server Database Engine (SQL), Analysis Services (AS), or Reporting Services (RS).
; Specify the root installation directory for shared components. This directory remains unchanged after shared components are already installed.
INSTALLSHAREDDIR=”C:\Program Files\Microsoft SQL Server”
; Specify the root installation directory for the WOW64 shared components. This directory remains unchanged after WOW64 shared components are already installed.
INSTALLSHAREDWOWDIR=”C:\Program Files (x86)\Microsoft SQL Server”
; Specify the Instance ID for the SQL Server features you have specified. SQL Server directory structure, registry structure, and service names will incorporate the instance ID of the SQL Server instance.
; Specifies which mode report server is installed in.
; Default value: “FilesOnly”
; Specify the installation directory.
INSTANCEDIR=”C:\Program Files\Microsoft SQL Server”
; Agent account name
; Auto-start service after installation.
; Startup type for Integration Services.
; Account for Integration Services: Domain\User or system account.
; CM brick TCP communication port
; How matrix will use private networks
; How inter brick communication will be protected
; TCP port used by the CM brick
; Startup type for the SQL Server service.
; Level to enable FILESTREAM feature at (0, 1, 2 or 3).
; Set to “1” to enable RANU for SQL Server Express.
; Specifies a Windows collation or an SQL collation to use for the Database Engine.
; Account for SQL Server service: Domain\User or system account.
; Set to “True” to enable instant file initialization for SQL Server service. If enabled, Setup will grant Perform Volume Maintenance Task privilege to the Database Engine Service SID. This may lead to information disclosure as it could allow deleted content to be accessed by an unauthorized principal.
; Windows account(s) to provision as SQL Server system administrators.
; The default is Windows Authentication. Use “SQL” for Mixed Mode Authentication.
; The number of Database Engine TempDB files.
; Specifies the initial size of a Database Engine TempDB data file in MB.
; Specifies the automatic growth increment of each Database Engine TempDB data file in MB.
; Specifies the initial size of the Database Engine TempDB log file in MB.
; Specifies the automatic growth increment of the Database Engine TempDB log file in MB.
; The Database Engine root data directory.
; Default directory for the Database Engine backup files.
; Default directory for the Database Engine user databases.
; Default directory for the Database Engine user database logs.
; Directories for Database Engine TempDB files.
; Directory for the Database Engine TempDB log files.
; Provision current user as a Database Engine system administrator for %SQL_PRODUCT_SHORT_NAME% Express.
; Specify 0 to disable or 1 to enable the TCP/IP protocol.
; Specify 0 to disable or 1 to enable the Named Pipes protocol.
; Startup type for Browser Service.
; Specifies which account the report server NT service should execute under. When omitted or when the value is empty string, the default built-in account for the current operating system.
; The username part of RSSVCACCOUNT is a maximum of 20 characters long and
; The domain part of RSSVCACCOUNT is a maximum of 254 characters long.
; Specifies how the startup mode of the report server NT service. When
; Manual – Service startup is manual mode (default).
; Automatic – Service startup is automatic mode.
; Disabled – Service is disabled
; Add description of input argument FTSVCACCOUNT
This is working configuration file, tested with SQL 2016 and Windows 2016.
Install SQL Server 2016 manually via GUI
Double click on Setup.exe in Installation media folder for SQL Server
Click on New SQL Server Installation
You may have noticed that you will need to install SQL Management studio as separate installation.
Enter the Product Key and Click Next
Check “I Accept the license terms” and click next. Read license terms before clicking I Accept.
Click Next on Global Rules page
Click Next on Microsoft Update page
Skip Updates if required
Click Next on Install Rules
You might get warning on .Net Application security, this is due to computer cannot access the internet. This has nothing to worry about.
Click Next to Continue
Select the required components
Database Engine Services
Full-Text and Semantic Extractions for Search
Reporting Services – Native
Click Next to Continue
Leave the Instance name to Default and Click Next to Continue
Select the Domain account and change startup type to Automatic for all required Services.
Make sure the Collation is set to “SQL_Latin1_General_CP1_CI_AS” for most applications to work properly.
Click Next to Continue
On Database Engine configuration, Select Mixed mode.
Enter mixed mode password
Add SQL Administrators group to SQL Server administrators
Change Database directories if required to suit your needs
Click Next on Database Engine Customizations
On Reporting Services customization step, Click next to Continue
Click Next and Next to Install
You may want to save the Configuration file to automate your next installation.
Click OK and Restart your SQL Server.
Install SQL Server 2016 Management Studio
Actually Installing SQL Management studio is very easy, just download and click Install. Download the latest SQL 2016 Management Studio from here.
Double click on “SSMS-Setup-ENU.exe”
Click Install to begin SQL Server 2016 Management Studio installation
One prompted, click on Yes for UAC prompt to allow installation
Once Installation is completed, Click Close.
That’s it. This completes the installation for SQL Server 2016 and Management Studio as well.
For those having issues with SQL Server installation and come up with “KB2919355”, please download it from – https://www.microsoft.com/en-us/download/confirmation.aspx?id=42334
- These KB’s must be installed in the following order: clearcompressionflag.exe, KB2919355, KB2932046, KB2959977, KB2937592, KB2938439, and KB2934018.
- KB2919442 is a prerequisite for Windows Server 2012 R2 Update and should be installed before attempting to install KB2919355
- Update for Windows Server 2012 R2 (KB2919442) – https://www.microsoft.com/en-au/download/details.aspx?id=42153