Install Windows
Install Windows
Install Windows
The SQL Server Installation Wizard provides a single feature tree to install all SQL Server components:
Database Engine
Analysis Services
Reporting Services
Integration Services
Master Data Services
Data Quality Services
Connectivity components
Starting with SQL Server 2016, SQL Server Management Tools is no longer installed from the main feature
tree; for details see Install SQL Server Management Tools with SSMS
You can install each component individually or select a combination of the components listed above. To
make the best choice among the editions and components available in SQL Server, see Editions and
Components of SQL Server 2016 and Features Supported by the Editions of SQL Server 2016.
In This Section
Regardless of whether you use the SQL Server Installation Wizard or the command prompt to install SQL Server,
Setup involves the following steps:
Planning a SQL Server Installation
Describes how to prepare your computer for SQL Server:
Hardware and software requirements.
System Configuration Checker requirements and blocking issues.
Security considerations.
Install SQL Server 2016
Describes installation options for SQL Server.
SQL Server Setup User Interface Reference
Describes the installation options presented by the SQL Server Installation Wizard.
Upgrade to SQL Server 2016
Describes options for upgrading to SQL Server.
Uninstall SQL Server 2016
Describes procedures to uninstall SQL Server and Master Data Services.
SQL Server Failover Cluster Installation
This section of the SQL Server Setup documentation explains how to install, and configure SQL Server
failover cluster.
Install SQL Server 2016 Business Intelligence Features
SQL Server features that are part of the Microsoft BI platform include Analysis Services, Integration Services,
Reporting Services, and several client applications used for creating or working with analytical data. This
section of the SQL Server Setup documentation explains how to install Analysis Services and Reporting
Services.
More Information
Install SQL Server BI Features with SharePoint (Power Pivot and Reporting Services)
This section explains how to install SQL Server features in a SharePoint environment. It identifies which SQL Server
features are available given a specific version and edition of SharePoint. It also includes installation procedures for
Power Pivot for SharePoint and Reporting Services in SharePoint mode.
See Also
What's New in SQL Server Installation
Hardware and Software Requirements for Installing SQL Server 2016
Upgrade SQL Server
3/29/2017 1 min to read Edit Online
You can upgrade instances of SQL Server 2008, SQL Server 2008 R2, SQL Server 2012, or SQL Server 2014 to
SQL Server 2017. Before running SQL Server Setup to upgrade to SQL Server 2017, review the following topics
about the upgrade process and the release notes.
For information about upgrading from SQL Server 2005, see Are you upgrading from SQL Server 2005?.
SQL Server 2016 Release Notes
In This Section
This section contains the following topics:
Supported Version and Edition Upgrades
Prepare for upgrade by running Data Migration Assistant
Are you upgrading from SQL Server 2005?
Upgrade Analysis Services
Upgrade Database Engine
Upgrade Data Quality Services
Upgrade Integration Services
Upgrade Master Data Services
Upgrade Power Pivot for SharePoint
Upgrade Replicated Databases
Upgrade and Migrate Reporting Services
Upgrade SQL Server Management Tools
Upgrade to SQL Server 2016 Using the Installation Wizard (Setup)
Upgrade to a Different Edition of SQL Server 2016 (Setup)
See Also
Upgrade Database Engine
Upgrade Analysis Services
Upgrade and Migrate Reporting Services
Upgrade Integration Services
Upgrade Replicated Databases
Upgrade Master Data Services
SQL Server 2008 R2 Best Practices Analyzer
Backward Compatibility_deleted
Supported Version and Edition Upgrades
6/27/2017 7 min to read Edit Online
You can upgrade from SQL Server 2008, SQL Server 2008 R2, SQL Server 2012, and SQL Server 2014. This topic
lists the supported upgrade paths from these SQL Server versions, and the supported edition upgrades for SQL
Server 2016.
Unsupported Scenarios
Cross-version instances of SQL Server 2016 are not supported. Version numbers of the Database Engine,
Analysis Services, and Reporting Services components must be the same in an instance of SQL Server
2016.
SQL Server 2016 is only available for 64-bit platforms. Cross-platform upgrade is not supported. You
cannot upgrade a 32-bit instance of SQL Server to native 64-bit using SQL Server Setup. However, you can
back up or detach databases from a 32-bit instance of SQL Server, and then restore or attach them to a
new instance of SQL Server (64-bit) if the databases are not published in replication. You must re-create
any logins and other user objects in master, msdb, and model system databases.
You cannot add new features during the upgrade of your existing instance of SQL Server. After you
upgrade an instance of SQL Server to SQL Server 2016, you can add features by using the SQL Server
2016 Setup. For more information, see Add Features to an Instance of SQL Server 2016 (Setup).
Failover Clusters are not supported in WOW mode.
Upgrade from an Evaluation edition of a previous SQL Server version is not supported.
When upgrading from RC1 or previous versions of SQL Server 2016 to RC3 or later versions, PolyBase
must be uninstalled before the upgrade and reinstalled after the upgrade.
The table below lists the supported upgrade scenarios from earlier versions of SQL Server to SQL Server 2016.
SQL Server 2008 SP4 Small Business SQL Server 2016 Standard
SQL Server 2008 R2 SP3 Small Business SQL Server 2016 Standard
SQL Server 2012 SP2 Business Intelligence SQL Server 2016 Enterprise
* Microsoft support to upgrade from release candidate software is specifically for customers who participated in
the Technology Adoption Program (TAP).
SQL Server 2016 Support for SQL Server 2005
This section discusses SQL Server 2016 support for SQL Server 2005. In SQL Server 2016, you will be able to do
the following:
Attach a SQL Server 2005 database (mdf/ldf files) to SQL Server 2016 instance of database engine.
Restore a SQL Server 2005 database to SQL Server 2016 instance of database engine from a backup.
Back up a SQL Server 2005 Analysis Services (SSAS) cube and restoring on SQL Server 2016.
When a SQL Server 2005 database is upgraded to SQL Server 2016, the database compatibility level will
be changed from 90 to 100. (In SQL Server 2016, valid values for the database compatibility level are 100,
110, 120, and 130.) ALTER DATABASE Compatibility Level (Transact-SQL) discusses how the compatibility
level change could affect SQL Server applications.
Any scenarios not specified in the list above are not supported, including but not limited to the following:
Installing SQL Server 2005 and SQL Server 2016 on same computer (side by side).
Using a SQL Server 2005 instance as a member of the replication topology that involves a SQL Server
2016 instance.
Configuring database mirroring between SQL Server 2016 and SQL Server 2005 instances.
Backing up the transaction log with log shipping between SQL Server 2016 and SQL Server 2005
instances.
Configuring linked servers between SQL Server 2016 and SQL Server 2005 instances.
Managing a SQL Server 2005 instance from a SQL Server 2016 Management Studio.
Attaching a SQL Server 2005 Analysis Services (SSAS) cube in SQL Server 2016 Management Studio.
Connecting to SQL Server 2005 Integration Services (SSIS) from SQL Server 2016 Management Studio.
Managing a SQL Server 2005 Integration Services (SSIS) service from SQL Server 2016 Management
Studio.
Support for SQL Server 2005 third party custom Integration Services components, such as execute and
upgrade.
SQL Server 2016 Enterprise (Server+CAL and Core)** SQL Server 2016 Enterprise
SQL Server 2016 Evaluation Enterprise** SQL Server 2016 Enterprise (Server+CAL or Core License)
SQL Server 2016 Standard** SQL Server 2016 Enterprise (Server+CAL or Core License)
SQL Server 2016 Developer** SQL Server 2016 Enterprise (Server+CAL or Core License)
SQL Server 2016 Web SQL Server 2016 Enterprise (Server+CAL or Core License)
SQL Server 2016 Express* SQL Server 2016 Enterprise (Server+CAL or Core License)
Additionally you can also perform an edition upgrade between SQL Server 2016 Enterprise (Server+CAL license)
and SQL Server 2016 Enterprise (Core License):
SQL Server 2016 Enterprise (Server+CAL License)** SQL Server 2016 Enterprise (Core License)
SQL Server 2016 Enterprise (Core License) SQL Server 2016 Enterprise (Server+CAL License)
* Also applies to SQL Server 2016 Express with Tools and SQL Server 2016 Express with Advanced Services.
** Changing the edition of a SQL Server 2016 failover cluster is limited. The following scenarios are not supported
for SQL Server 2016 failover clusters:
SQL Server 2016 Enterprise to SQL Server 2016 Developer, Standard, or Evaluation.
SQL Server 2016 Developer to SQL Server 2016 Standard or Evaluation.
SQL Server 2016 Standard to SQL Server 2016 Evaluation.
SQL Server 2016 Evaluation to SQL Server 2016 Standard.
See Also
Editions and Supported Features for SQL Server 2016
Hardware and Software Requirements for Installing SQL Server 2016
Upgrade to SQL Server 2016
Prepare for upgrade by running Data Migration
Assistant
3/29/2017 1 min to read Edit Online
Prepare to upgrade your OLTP databases and to adopt new features in SQL Server 2016 by downloading and
running Microsoft Data Migration Assistant.
The end of extended support for SQL Server 2005 is one reason to upgrade now to a newer version of SQL Server
and to Azure SQL Database. Upgrading enables you to maintain security and compliance, achieve breakthrough
performance, and optimize your data platform infrastructure.
For more info, guidance, and tools to plan and automate your upgrade or migration, see SQL Server 2005 end of
support.
Why upgrade?
IMPORTANT
Extended support for SQL Server 2005 ends on April 12, 2016. If you're still running SQL Server 2005 after April 12, 2016,
you'll no longer receive security updates.
To get a data sheet in PDF format that explains the benefits of upgrading from SQL Server 2005, click here (not on
the thumbnail image below).
SQL Server on premises You have the most control over You have to make the biggest up-front
features and scalability because you investment and provide the most
Consider this option for database manage both hardware and software. ongoing management, because you
applications of any kind, from have to buy, maintain, and manage
transactional systems to data If youre upgrading from SQL Server your own hardware and software.
warehouses. 2005, this is the most similar
environment. For more information, see SQL Server
2016.
RELATIONAL STORAGE OPTION BENEFITS OTHER FACTORS TO CONSIDER
SQL Server hosted on Azure virtual You can deploy quickly from a library of You have to configure and manage
machines virtual machine images. both the SQL Server and the operating
system software.
Consider this option if you want the You get the full SQL Server feature set.
following:
You save the cost of hardware and of
Benefits of migrating to a hosted server software. You pay only for hourly For more information, see SQL Server
environment. usage. on Azure Virtual Machines overview.
Control over the operating For info about migrating, see Migrate a
environment. database to SQL Server on an Azure
VM.
Familiar feature set of SQL Server.
Azure SQL Database hosted You can deploy quickly and scale up Azure SQL Database lacks some SQL
database service easily. Server features that are not applicable
in a hosted cloud environment. For
Consider this option if you want a You pay only for hourly usage. more info, see Azure SQL Database
lower-cost solution with less Transact-SQL information.
maintenance. The cost of the service includes not only
storage, but high availability and Azure SQL Database also has a
This option is particularly well suited for automated backups. maximum database size of 500 GB,
apps that dont require the same compared to 524 PB for SQL Server.
capacity at all times, or that have to
provide external access. For more information, see SQL
Database.
You may also want to consider a non-relational or NoSQL solution for certain data and applications.
Azure DocumentDB Your documents are indexed and you can use familiar SQL
syntax to query them.
Consider this option for modern, scalable, mobile and web
applications that use JSON data and require a combination of The database is schema-free.
robust querying and transactional data processing.
You can add properties to documents without having to
For more info, see DocumentDB. rebuild indexes.
For info about importing data, see Import data to You get JSON and JavaScript support right inside the
DocumentDB. database engine.
Azure table storage You can evolve your apps and your table schema without
taking the data offline.
Consider this option to store petabytes of semi-structured
data in a cost-effective solution. You can scale up without sharding your dataset.
For more info, see Table Storage. You get geo-redundant storage that replicates data across
multiple regions.
To download the report "Migrating from SQL Server 2005" by Directions on Microsoft, which contains more
details about the upgrade options, click here (not on the thumbnail image below).
IMPORTANT
You can't upgrade a SQL Server 2005 server to a SQL Server 2016 server in place. You have to install SQL
Server 2016, then migrate your SQL Server 2005 databases to the new installation. For more info, see the
section "New Installation Upgrade" in the topic Choose a Database Engine Upgrade Method.
To get the more detailed "Technical Upgrade Guide" in PDF format, click here.
NOTE
This is currently the SQL Server 2014 version of the "Technical Upgrade Guide". The SQL Server 2016 version
of the guide is not yet available.
For more info, guidance, and tools to plan and automate your upgrade or migration, see SQL Server 2005
end of support.
See Also
SQL Server 2016
SQL Server 2005 end of support
Upgrade from SQL Server 2005 to SQL Server 2014
Upgrade Analysis Services
3/24/2017 7 min to read Edit Online
Analysis Services instances can be upgraded to a SQL Server 2016 version of the same server mode to take
advantage of features introduced in the current release, as described in What's New in Analysis Services.
You can upgrade each instance in-place, independently of other instances running on the same hardware.
However, most administrators choose to install a new instance of the new version for application testing before
transferring production workloads onto the new server. But for development or test servers, an in-place upgrade
might be more convenient.
Before upgrading to SQL Server 2017 Analysis Services, review the following:
SQL Server 2016 Release Notes describes known problems and workarounds.
Analysis Services Backward Compatibility summarizes discontinued, deprecated, and changed features. You
should review these lists periodically to assess the impact of product changes to your models, scripts, or
custom code. Typically, feature transitions are announced during pre-release of the next major release.
Server Upgrade
There are two basic approaches for upgrading servers and databases:
In-place upgrades replace the existing program files with SQL Server 2017 program files. Databases
remain in the same location. Program folders are updated to reflect the new name.
Side-by-side upgrades create a new installation of SQL Server 2017, usually on the same computer unless
you are upgrading hardware at the same time. This approach requires you to move databases over to the
new instance, and then optionally uninstall the previous version to free up disk space.
The compatibility levels of databases that are attached to a given server remain the same unless you
manually change them.
In-place upgrade
You can upgrade an existing instance of Analysis Services to SQL Server 2017 Analysis Services and, as part of the
upgrade process, automatically migrate existing databases from the old instance to the new instance. Because the
metadata and binary data is compatible between the two versions, you will retain the data after you upgrade and
you do not have to manually migrate the data.
To upgrade an existing instance, run Setup and specify the name of the existing instance as the name of the new
instance.
Side -by-side upgrade
Backup all databases and verify that each can be restored. See Backup and Restore of Analysis Services
Databases.
Identify a subset of reports, spreadsheets, or dashboard snapshots to use later as the basis for confirming
post-upgrade server operations. If possible, collect performance measurements so that you can run
comparisons against the same workloads on an upgraded server.
Install a new instance of Analysis Services, choosing the same server mode (Tabular or Multidimensional) as
the server you intend to replace. See Install Analysis Services.
Follow post-installation tasks for configuring ports and adding server administrators. See Post-install
Configuration (Analysis Services).
Attach or restore each database.
Run DBCC to check for database integrity. Tabular models undergo more thorough checking, with tests for
orphaned objects throughout the model hierarchy. For multidimensional models, only the partition indexes
are checked. See Database Consistency Checker (DBCC) for Analysis Services tabular and multidimensional
databases.
Test reports, spreadsheets, and dashboards to confirm there is no adverse change to behavior or
calculations. You should see faster performance for both multidimensional and tabular workloads.
Test processing operations, correcting any login or permission issues. If you are using default service
account for connections, the new service runs under a different account. See Configure Service Accounts
(Analysis Services) for more information about startup accounts for Analysis Services.
Test backup and restore operations on the upgraded server, adjusting scripts to use the new server name.
Database upgrade
Databases that were created in previous versions of Analysis Services run on the upgraded server under an older
database compatibility level setting. Generally, you can upgrade a database or model to operate at a higher
compatibility level to gain access to new features, but be aware that doing so binds you to a specific server version.
To upgrade a database, you typically upgrade the model in SQL Server Data Tools (SSDT) and then deploy the
solution to an upgraded server instance. See Download SQL Server Data Tools to get the newest version.
Tabular and multidimensional databases follow different version paths. It's coincidental that both
multidimensional and tabular models have compatibility level 1100. Modes will advance at different rates if
feature changes impact only one of them.
For background purposes, the following table summarizes the compatibility levels, but you should review the
detail topics to understand what each level provides.
See Compatibility Level of a Multidimensional Database (Analysis Services) and Compatibility Level for Tabular
models in Analysis Services for more information.
NOTE
Older Tabular compatibility levels of 1050 and 1103 are supported but deprecated. In some future release of SQL Server,
tabular models cast as multidimensional objects will no longer be supported. See Deprecated Analysis Services Features in
SQL Server 2016 for the announcement.
See Also
DirectQuery Mode (SSAS Tabular)
What's New in Analysis Services
Features Supported by the Editions of SQL Server 2016
Planning a SQL Server Installation
Upgrade Power Pivot for SharePoint
Install Analysis Services in Multidimensional and Data Mining Mode
Upgrade to SQL Server 2016 Using the Installation Wizard (Setup)
Upgrade Database Engine
3/29/2017 1 min to read Edit Online
The topics in this section will help you upgrade the SQL Server database engine from a prior release of SQL Server
to SQL Server 2017.
1. Choose a Database Engine Upgrade Method Before beginning an upgrade, you need to understand the
various upgrade methods. This topic discusses the upgrade methods and the steps involved with each
upgrade method.
2. Plan and Test the Database Engine Upgrade Plan After reviewing the upgrade methods, you are ready to
develop the appropriate upgrade method for your environment and then test the upgrade method before
upgrading the existing environment. This topic discusses developing an upgrade plan and testing it.
3. Complete the Database Engine Upgrade After your databases have been upgraded to SQL Server 2017,
there are additional steps you need to take, including taking a new backup, enabling new features, and re-
populating full-text catalogs. This topic discusses these steps.
4. Change the Database Compatibility Mode and Use the Query Store One of the steps to take after your
databases have been upgraded to SQL Server 2017 is to enable new features by changing the database
compatibility mode and then using the query store to monitor performance. This topic discusses this
process and provides a recommended workflow.
5. Take Advantage of New SQL Server 2016 Features Finally, after you have completed the previous steps, you
are ready to explore taking advantage of specific new database engine enhancements. This topic suggests a
few of these enhancements and provides links for more information.
Choose a Database Engine Upgrade Method
3/29/2017 7 min to read Edit Online
There are several approaches to consider when you are planning to upgrade the Database Engine from a prior
release of SQL Server to SQL Server 2017 in order to minimize downtime and risk. You can perform an upgrade
in-place, migrate to a new installation, or perform a rolling upgrade. The following diagram will help you to
choose amongst these approaches. Each of the approaches in the diagram are also discussed below. To assist you
with the decision points in the diagram, please also review Plan and Test the Database Engine Upgrade Plan.
Download
To download SQL Server 2016, go to Evaluation Center.
Have an Azure account? Then go Here to spin up a Virtual Machine with SQL Server 2017 already installed.
NOTE
You may also consider upgrading the Azure SQL Database or virtualizing your SQL Server environment as part of your
upgrade plan. These topics are out of scope for this topic, but here are some links: Introduction to SQL Server 2016 Hybrid
Cloud, SQL Server on Azure Virtual Machines overview, Azure SQL Database and Selecting a SQL Server option in Azure.
Upgrade in-place
With this approach, the SQL Server setup program upgrades the existing SQL Server installation by replacing the
existing SQL Server bits with the SQL Server 2017 bits and then upgrades each of the system and user databases.
The upgrade in-place approach is easiest, requires some amount of downtime, takes longer to fallback if a fallback
is necessary, and it is not supported for all scenarios. For more information on supported and unsupported
upgrade in-place scenarios, see Supported Version and Edition Upgrades.
This approach is frequently used in the following scenarios:
A development environment without a high-availability (HA) configuration.
A non-mission critical production environment that can tolerate downtime and that is running on a recent
hardware and software. The amount of downtime is dependent upon the size of your database and the
speed of your I/O subsystem. Upgrading SQL Server 2014 when memory-optimized tables are in use will
take some extra time. For more information, see Plan and Test the Database Engine Upgrade Plan.
WARNING
When running the SQL Server 2017 setup program, the SQL Server instance is stopped and restarted as part of running the
pre-upgrade checks.
Cau t i on
When you upgrade SQL Server, the previous SQL Server instance will be overwritten and will no longer exist on
your computer. Before upgrading, back up SQL Server databases and other objects associated with the previous
SQL Server instance.
The following diagram provides a high-level overview of the steps required for an in-place upgrade of the
Database Engine.
For detailed steps, see Upgrade to SQL Server 2016 Using the Installation Wizard (Setup).
Migrate to a new installation
With this approach, you maintain the current environment while you build a new SQL Server 2017 environment,
frequently on new hardware and with a new version of the operating system. After installing SQL Server 2017 in
the new environment, you perform a number of steps to prepare the new environment so that you can migrate
the existing user databases from the existing environment to the new environment and minimize downtime. These
steps include migrating the following:
System objects: Some applications depend on information, entities, and/or objects that are outside of the
scope of a single user database. Typically, an application has dependencies on the master and msdb
databases, and also on the user database. Anything stored outside of a user database that is required for
the correct functioning of that database must be made available on the destination server instance. For
example, the logins for an application are stored as metadata in the master database, and they must be re-
created on the destination server. If an application or database maintenance plan depends on SQL Server
Agent jobs, whose metadata is stored in the msdb database, you must re-create those jobs on the
destination server instance. Similarly, the metadata for a server-level trigger is stored in master.
When you move the database for an application to another server instance, you must re-create all the
metadata of the dependant entities and objects in master and msdb on the destination server instance. For
example, if a database application uses server-level triggers, just attaching or restoring the database on the
new system is not enough. The database will not work as expected unless you manually re-create the
metadata for those triggers in the master database. For detailed information, see Manage Metadata When
Making a Database Available on Another Server Instance (SQL Server)
Integration Services packages stored in MSDB: If you are storing packages in MSDB, you will need to
either script out those packages using the dtutil Utility or redeploy them to the new server. Before using the
packages on the new server, you will need to upgrade the packages to SQL Server 2017. For more
information, see Upgrade Integration Services Packages.
Reporting Services encryption keys: An important part of report server configuration is creating a
backup copy of the symmetric key used for encrypting sensitive information. A backup copy of the key is
required for many routine operations, and enables you to reuse an existing report server database in a new
installation. For more information, see Back Up and Restore Reporting Services Encryption Keys and
Upgrade and Migrate Reporting Services
Once the new SQL Server 2017 environment has the same system objects as the existing environment, you
then migrate the user databases from the existing system to the SQL Server 2017 instance in a manner that
will minimize downtime on the existing system. You accomplish the database migration either using
backup and restore, or by repointing LUNs if you are in a SAN environment. The steps for both methods are
delineated in the diagrams below.
Cau t i on
The amount of downtime is dependent upon the size of your database and the speed of your I/O subsystem.
Upgrading SQL Server 2014 when memory-optimized tables are in use will take some extra time. For more
information, see Plan and Test the Database Engine Upgrade Plan.
After migrating the user database(s), you point new users to the new SQL Server instance using one of a variety of
methods (e.g. renaming the server, using a DNS entry, modifying connection strings). The new installation
approach reduces risk and downtime as compared to an in-place upgrade , and facilitates hardware and operating
system upgrades in conjunction with the upgrade to SQL Server 2017.
NOTE
If you already have a high availability (HA) solution in place or some other multiple SQL Serverinstance environment, go
Rolling upgrade. If you do not have a high availability solution in place, you can consider either temporarily configuring
Database Mirroring to further minimize downtime to facilitate this upgrade or taking this opportunity to configure an
Always On Availability Group as a permanent HA solution.
Rolling upgrade
A rolling upgrade is required in SQL Server solution environments involving multiple SQL Server instances that
must be upgraded in a certain order to maximize uptime, minimize risk, and preserve functionality. A rolling
upgrade is essentially the upgrade of multiple SQL Server instances in a particular order, either performing an
upgrade in-place on each existing SQL Serverinstance or performing a new installation upgrade to facilitate
upgrading hardware and/or the operating system as part of the upgrade project. There are a number of scenarios
in which you need to use the rolling upgrade approach. These are documented in the following topics:
Always-On Availability Groups: For detailed steps for performing a rolling upgrade in this environment, see
Upgrading Always On Availability Group Replica Instances.
Failover clustering instances: For detailed steps for performing a rolling upgrade in this environment, see
Upgrade a SQL Server Failover Cluster Instance
Mirrored instances: For detailed steps for performing a rolling upgrade in this environment, see Upgrading
Mirrored Instances.
Log shipping instances: For detailed steps for performing a rolling upgrade in this environment, see
Upgrading Log Shipping to SQL Server 2016 (Transact-SQL)
A replication environment: For detailed steps for performing a rolling upgrade in this environment, see
Upgrade Replicated Databases
A SQL Server Reporting Services scale-out environment: For detailed steps for performing a rolling
upgrade in this environment, see Upgrade and Migrate Reporting Services.
Did this Article Help You? Were Listening
What information are you looking for, and did you find it? Were listening to your feedback to improve the
content. Please submit your comments to [email protected]
See Also
Plan and Test the Database Engine Upgrade Plan
Complete the Database Engine Upgrade
Plan and Test the Database Engine Upgrade Plan
3/29/2017 5 min to read Edit Online
To perform a successful SQL Server 2017 upgrade, regardless of approach, appropriate planning is required.
Backward compatibility: Review the SQL Server 2017 database engine backward compatibility topic to
review changes in behavior between SQL Server 2017 and the SQL Server version from which you are
upgrading. See SQL Server Database Engine Backward Compatibility.
Upgrade advisor: Run the SQL Server 2017 Upgrade Advisor to assist in diagnosing issues that might
either block the upgrade process or require modification to existing scripts or applications due to a
breaking change. SQL Server 2017 contains a new version of the Upgrade Advisor to assist customers
preparing to upgrade an existing system. This tool also contains an ability to check your existing databases
to see if they can leverage new features, such as Stretch Tables, after upgrade is complete.
You can download SQL Server 2017Upgrade Advisor here.
System configuration checker: Run the SQL Server 2017 System Configuration Checker (SCC) to
determine if the SQL Server setup program detects any blocking issues before you actually schedule the
upgrade. For more information, see Check Parameters for the System Configuration Checker.
Upgrading memory-optimized tables: When upgrading a SQL Server 2014 database instance
containing memory-optimized tables to SQL Server 2016, the upgrade process will require additional time
to convert the memory-optimized tables to the new on-disk format (and the database will be offline while
these steps are happening. The amount of time is dependent upon the size of the memory-optimized tables
and the speed of the I/O subsystem. The upgrade requires three size of data operations for in-place and
new installation upgrades (step 1 is not required for rolling upgrades, but steps 2 and 3 are required) :
1. Run database recovery using the old on-disk format (this includes loading all data in memory-
optimized tables into memory from disk)
2. Serialize the data to disk in the new on-disk format
3. Run database recovery using the new format (this includes loading all data in memory-optimized
tables into memory from disk)
Additionally, insufficient space on disk during this process will cause recovery to fail. Ensure there is
sufficient space on disk to store the existing database plus additional storage equal to the current
size of the containers in the MEMORY_OPTIMIZED_DATA filegroup in the database to perform an in-
place upgrade or when attaching a SQL Server 2014 database to a SQL Server 2016 instance.Use
the following query to determine the disk space currently required for the
MEMORY_OPTIMIZED_DATA filegroup, and consequently also the amount of free disk space
required for upgrade to succeed:
See Also
Upgrade Database Engine
Complete the Database Engine Upgrade
3/29/2017 1 min to read Edit Online
After the upgrade to SQL Server 2016 is complete, there are a number of additional steps that you may need to
take. These include the following:
After upgrading the Database Engine, complete the following tasks:
Backup your databases: Perform a full backup of each upgraded database.
Enable new features: In SQL Server 2016, some changes are only enabled once the
DATABASE_COMPATIBILITY level for a database has been changed to 130. For more information and for the
recommended workflow, see Change the Database Compatibility Mode and Use the Query Store.
Integration Services:
Migrate Integration Services packages to SQL Server 2017 format. For more information, see Upgrade
Integration Services Packages.
Reporting Services: For a new installation upgrade, restore the Reporting Services encryption Keys. For
more information, see Back Up and Restore Reporting Services Encryption Keys.
Master Data Services: Upgrade the MDS database schema and create the SQL Server 2016 web
application. For more information, see Upgrade Master Data Services.
Data Quality Services: Upgrade the DQS databases schema and verify the DQS databases schema
upgrade. For more information, see Upgrade Data Quality Services.
Full Text Search: Re-populate full-text catalogs to ensure semantic consistency in query results. For more
information, see Populate Full-Text Indexes.
In SQL Server 2016, some changes are only enabled once the DATABASE_COMPATIBILITY level for a database has
been changed to 130. This was done for several reasons:
Since upgrade is a one-way operation (it is not possible to downgrade the file format), there is value in
separating the enablement of new features to a separate operation within the database. It is possible to
revert a setting to a prior DATABASE_COMPATIBILITY level. The new model reduces the number of things
that must happen during an outage window.
Changes to the query processor can have complex effects. Even a good change to the system may be great
for most of customers may cause an unacceptable regression on an important query elsewhere. Separating
this logic from the upgrade process allows for features, such as the Query Store, to mitigate plan choice
regressions quickly or even avoid them completely in production servers.
NOTE
If the compatibility level of a user database was 100 or higher before the upgrade, it remains the same after upgrade. If the
compatibility level was 90 before upgrade, in the upgraded database, the compatibility level is set to 100, which is the lowest
supported compatibility level in SQL Server 2017. The compatibility levels of the tempdb, model, msdb and Resource
databases are set to 130 after upgrade. The master system database retains the compatibility level it had before upgrade.
The upgrade process to enable new query processor functionality is related to the post-release servicing model of
the product. Some of those fixes are released under trace flag 4199. Customers needing fixes can opt-in to those
fixes without causing unexpected regressions for other customers. The post-release servicing model for query
processor hotfixes is documented here. As of SQL Server 2016, moving to a new compatibility level implies that the
4199 trace flag is no longer needed because those fixes are now enabled by default in the latest compatibility
mode (130). Therefore, as part of the upgrade process, it is important to validate that 4199 is not enabled once the
upgrade process completes.
The recommended workflow for upgrading the query processor to the latest version of the code is:
1. Upgrade a database to SQL Server 2016 without changing the database compatibility level (keep it at prior
level)
2. Enable the query store on the database. For more information about enabling and using the query store, see
Monitoring Performance By Using the Query Store.
3. Wait sufficient time to collect representative data of the workload.
4. Change the compatibility level of the database to 130
5. Using SQL Server Management Studio, evaluate if there are performance regressions on specific queries
after the compatibility level change
6. For cases where there are regressions, force the prior plan in the query store.
7. If there are query plans that fail to force or if performance is still insufficient, consider reverting the
compatibility level to the prior setting and then engaging Microsoft Customer Support.
See Also
View or Change the Compatibility Level of a Database
Upgrade Data Quality Services
3/29/2017 3 min to read Edit Online
This topic provides information on how to upgrade your existing installation of Data Quality Services (DQS) to SQL
Server 2017 CTP2. As part of upgrading your Data Quality Server in DQS to SQL Server 2017, you must also
upgrade the DQS databases schema.
IMPORTANT
You must back up your DQS databases before upgrading DQS to prevent any accidental data loss during the schema
upgrade. For information about backing up DQS databases, see Backing Up and Restoring DQS Databases.
You can connect to the SQL Server 2017 version of Data Quality Server by using the current or an earlier version
of Data Quality Client or the DQS Cleansing Transformation in Integration Services to perform your data quality
tasks.
After upgrading Data Quality Services and Master Data Services to SQL Server 2017, any earlier version of the
Master Data Services Add-In for Excel will no longer work. You can download the SQL Server 2017 version of
Master Data Services Add-In for Excel from here.
Prerequisites
You must be logged on as a member of the Administrators group on the Data Quality Server computer.
Your Windows user account must be a member of the sysadmin fixed server role in the SQL Server instance
where Data Quality Server is installed.
Upgrading DQS
To upgrade DQS:
1. Back up your DQS databases before you start the upgrade process. For information about backing up DQS
databases, see Backing Up and Restoring DQS Databases.
2. Upgrade the SQL Server instance where DQS is installed to SQL Server 2017.
a. Run the SQL Server 2017 Setup wizard.
b. In the left pane, click Installation.
c. In the right pane, click Upgrade from SQL Server 2008, SQL Server 2008 R2, SQL Server 2012, or
SQL Server 2014.
d. Complete the Setup wizard.
NOTE
This will upgrade your SQL Server instance to SQL Server 2017 and also install the latest Data Quality Client,
if Data Quality Client was previously installed on this computer. If you have Data Quality Client installed on
other computers, you must run the sub steps in Step 2 on those computers to install the current version of
Data Quality Client. The Setup wizard installs the current version of Data Quality Client alongside the existing
version of Data Quality Client. After you upgrade the DQS databases schema, you can connect to the SQL
Server 2017 version of Data Quality Server by using the current or an earlier version of Data Quality Client.
3. Upgrade the DQS databases schema.
a. Start Command Prompt as an administrator.
b. At the command prompt, change your directory to the location where DQSInstaller.exe is available.
For the default instance of SQL Server, the DQSInstaller.exe file is available at C:\Program
Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn:
c. At the command prompt, type the following command, and press ENTER:
dqsinstaller.exe -upgrade
d. The installer prompts you for backing up the DQS databases before proceeding. If you have already
backed up your DQS databases, type Y or Yes, and then press ENTER to continue with the upgrade.
e. A completion message is displayed after successful upgrade of the DQS databases schema.
3. The output will display an entry for each upgrade along with the date of the upgrade. The maximum
VERSION_ID and ASSEMBLY_VERSION on the latest date is the current version. A value of 2 in the STATUS
column indicates success. If an error has occurred, the error will be listed in the ERROR column. A sample
output:
UPGRADE_DA ASSEMBLY_VE
ID TE VERSION_ID RSION USER_NAME STATUS ERROR
See Also
Install Data Quality Services
Remove Data Quality Server Objects
Upgrade to SQL Server 2016
Upgrade Master Data Services
3/29/2017 6 min to read Edit Online
The following are the scenarios for upgrading to Microsoft SQL Server 2016.
Upgrade without Database Engine Upgrade
Upgrade with Database Engine Upgrade
Upgrade in Two-Computer Scenario
Upgrade with Restoring a Database from Backup
IMPORTANT
Upgrading from the SQL Server 2017 CTP1 release to the CTP2 release is not supported.
Back up your database before performing any upgrade.
The upgrade process recreates stored procedures and upgrades tables used by Master Data Services. Any
customizations you have made to either of these components may be lost.
Model deployment packages can be used only in the edition of SQL Server they were created in. You cannot
deploy model deployment packages created in SQL Server 2008 R2, SQL Server 2012, or SQL Server 2014 to SQL
Server 2016.
After upgrading Data Quality Services and Master Data Services to SQL Server 2017, any earlier version of the
Master Data Services Add-In for Excel will no longer work. You can download the SQL Server 2016 Master Data
Services Add-In for Excel from Master Data Services Add-in for Microsoft Excel.
File Location
In SQL Server 2017, by default, the files are installed at drive:\Program Files\Microsoft SQL
Server\130\Master Data Services.
In SQL Server 2014, by default, the files are installed at drive:\Program Files\Microsoft SQL
Server\120\Master Data Services.
In SQL Server 2012, by default, the files are installed at drive:\Program Files\Microsoft SQL
Server\110\Master Data Services.
In SQL Server 2008 R2, by default, the files are installed at drive:\Program Files\Microsoft SQL
Server\Master Data Services.
IMPORTANT
To upgrade the MDS database schema, you must be logged in as the Administrator Account that was
specified when the MDS database was created. In the MDS database, in mdm.tblUser, this user has the ID
value of 1.
IMPORTANT
Your existing MDS web application from an earlier version of SQL Server ( SQL Server 2008 R2, SQL Server
2012, or SQL Server 2014) is available for selection in the SQL Server 2017 version of Master Data Services
Configuration Manager. You must not select the existing web application, and instead must create a SQL
Server 2016 web application for MDS. Otherwise, you will receive an error when you try to associate the web
application with the upgraded MDS database stating that the requested page cannot be accessed because
the related configuration data for the page is invalid.
If you want to use the same name (alias) for MDS web application as your existing ( SQL Server 2008 R2, SQL
Server 2012, or SQL Server 2014) web application, you must first delete the web application and the
associated application pool from IIS, and then create a web application with the same name using SQL Server
2016 version of Master Data Services Configuration Manager. For information about removing web
application and application pools from IIS, see Remove an Application (IIS) and Remove an Application Pool
(IIS).
4. Associate the new web application with the upgraded MDS database.
a. In the Associate Application with Database section, click Select.
b. Select the MDS database.
c. Click Apply.
Troubleshooting
Issue: When you open the SQL Server 2008 R2, SQL Server 2012, or SQL Server 2014 Master Data Manager web
application, a client version is not compatible with the database version error message is displayed.
Solution: This issue occurs when a SQL Server 2008 R2, SQL Server 2012, or SQL Server 2014 Master Data
Manager web application tries to access a database that has been upgraded to SQL Server 2016 Master Data
Services. You must use a SQL Server 2016 web application instead.
This issue may also occur if you did not stop and restart the MDS Application Pool in IIS when upgrading the
MDS database schema. Restart the MDS Application Pool to correct the issue.
See Also
Install Master Data Services
Upgrade Power Pivot for SharePoint
3/24/2017 19 min to read Edit Online
This topic summarizes the steps required to upgrade a deployment of Power Pivot for SharePoint to Microsoft SQL
Server 2016 Power Pivot for SharePoint. The specific steps depend on the version of SharePoint your environment
is currently running and include the Power Pivot for SharePoint Add-in (spPowerPivot.msi).
Applies to: SharePoint 2010 | SharePoint 2013
For release notes, see SQL Server 2016 Release Notes.
In this topic:
Prerequisites
Upgrade an Existing SharePoint 2013 Farm
Upgrade an Existing SharePoint 2010 Farm
Workbooks
Data Refresh
Verify the Versions of Power Pivot Components and Services
Upgrading Multiple Power Pivot for SharePoint Servers in a SharePoint Farm
Applying a QFE to a Power Pivot instance in the farm
Post-upgrade verification tasks
Background
If you are upgrading a multi-server SharePoint 2010 farm that has two or more Power Pivot for SharePoint
instances, you must fully upgrade each server before continuing to the next server. A full upgrade includes
running SQL Server Setup to upgrade Power Pivot for SharePoint program files, followed by SharePoint
upgrade actions that configure the upgraded services. Server availability will be limited until you run
upgrade actions in the appropriate Power Pivot Configuration Tool or Windows PowerShell.
All instances of Power Pivot System Service and Analysis Services in a SharePoint 2010 farm must be the
same version. For information on how to verify the version, see the section Verify the Versions of Power
Pivot Components and Services in this topic.
The Power Pivot configuration tools are one of the SQL Server shared features and all shared features
upgrade at the same time. If during an upgrade process you select other SQL Server instances or features
that require a shared feature upgrade, then the Power Pivot configuration tool will also be upgraded. You
may have issues if the Power Pivot configuration tool is upgraded but your Power Pivot instance is not. For
more information about SQL Server shared features, see Upgrade to SQL Server 2016 Using the Installation
Wizard (Setup).
The Power Pivot for SharePoint Add-in (spPowerPivot.msi) installs side by side with previous versions. For
example the SQL Server 2017 add-in installs to the folder
c:\Program Files\Microsoft SQL Server\130\Tools\PowerPivotTools .
Prerequisites
Permissions
You must be a farm administrator to upgrade a Power Pivot for SharePoint installation. You must be a local
administrator to run SQL Server Setup.
You must have db_owner permissions on the farm configuration database.
SQL Server:
If the existing Power Pivot installation is SQL Server 2008 R2, the SQL Server 2008 R2 Service Pack 2 (SP2)
is required for an upgrade to SQL Server 2017 Power Pivot for SharePoint.
If the existing Power Pivot installation is SQL Server 2012, the SQL Server 2012 Service Pack 1 (SP1) is
required for an upgrade to SQL Server 2017 Power Pivot for SharePoint.
SharePoint 2010:
If the existing installation is running SharePoint 2010, install the SharePoint 2010 Service Pack 2 before
upgrading to SQL Server 2017 Power Pivot for SharePoint. For more information, see Service Pack 2 for
Microsoft SharePoint 2010. Use the PowerShell command (Get-SPfarm).BuildVersion.ToString() to verify
the version. To reference the build version to release date, see SharePoint 2010 Build Numbers.
1. Run SQL Server 2017 Setup on backend server(s) that run Analysis Services in SharePoint mode. If the
server hosts multiple instances of Analysis Services, upgrade at least the POWERPIVOT instance. The
following list is a summary of setup wizard steps related to a Power Pivot upgrade:
a. In the SQL Server Setup Wizard, click Installation.
b. Click Upgrade from SQL Server...
c. On the Select Instance page, select the POWERPIVOT instance name and then click Next.
d. For more information, see Upgrade to SQL Server 2016 Using the Installation Wizard (Setup)
2. Restart the server.
3. Run the Power Pivot for SharePoint add-in (spPowerPivot.msi) on each server in the SharePoint 2013
farm to install the data providers. The exception is servers where you ran the SQL Server setup wizard,
which also upgrades data providers. For more information, see Download Microsoft SQL Server 2014
Power Pivot for Microsoft SharePoint 2013 and Install or Uninstall the Power Pivot for SharePoint Add-in
(SharePoint 2013).
4. Run the Power Pivot for SharePoint 2013 Configuration tool on one of the SharePoint application
servers to configure the SharePoint farm with the updated solution files that the add-in installed. You
cannot use Central SharePoint Administration for this step. For more information, see the following:
a. From the Windows Start page, type Power Pivot and in the search results, click Power Pivot for
SharePoint 2013 Configuration. Note the search may return both versions of the configuration
tool.
Or
On the Start menu, point to All Programs, click Microsoft SQL Server 2017, click Configuration
Tools, and then click Power Pivot for SharePoint 2013 Configuration Too. Note that this tool is
listed only when Power Pivot for SharePoint is installed on the local server.
b. At startup, the configuration tool checks the upgrade status of the Power Pivot farm solution and
Power Pivot web application solutions. If older versions of these solutions are detected, you will see
the message Newer versions of the Power Pivot solution files have been detected. Please
select the upgrade option to upgrade your farm. Click OK to close the system validation
message.
c. Click Upgrade Features, Services, Applications and Solutions, and then click OK.
d. Review the actions in the left pane task list and exclude any that you do not want the tool to perform.
All actions are included by default. To remove an action, select it in the left task list, and then on the
Parameters page, clear the Include this action in the task list checkbox.
e. Optionally, review detailed information in the Script or Output tab.
The Output tab is a summary of the actions that will be performed by the tool. This information is
saved in log files at
C:\Program Files\Microsoft SQL Server\130\Tools\PowerPivotTools\SPAddinConfiguration\Log .
The Script tab shows the PowerShell cmdlets or references the PowerShell script files that the tool
will run.
f. Click Validate to check whether each action is valid. If Validate is not available, it means that all of
the actions are valid for your system. If Validate is available, you might have modified an input value
(for example, the Excel service application name), or the tool might have determined that a particular
action cannot be performed. If an action cannot be performed, you must exclude it or fix the
underlying conditions that cause the action to be flagged as invalid.
IMPORTANT
The first action, Upgrade Farm Solution, must always be processed first. It registers the PowerShell cmdlets
that are used to configure the server. If you get an error on this action, do not continue. Instead, use the
information provided by the error to diagnose and resolve the problem before processing additional actions
in the task list.
g. Click Run to perform all of the actions that are valid for this task. Run is available only after the
validation check is passed. When you click Run, the following warning appears, reminding you that
actions are processed in batch mode: All of the configuration settings that are flagged as valid
in the tool will be applied to the SharePoint farm. Do you want to continue?.
h. Click Yes to continue.
i. Upgrading solutions and features in the farm can take several minutes to complete. During this time,
connection requests for Power Pivot data will fail with errors similar to Unable to refresh data
or An error has occurred trying to perform the requested action. Please try again. After
upgrade is finished, the server will become available and these errors will no longer occur.
For more information, see the following:
Power Pivot Configuration Tools
Configure or Repair Power Pivot for SharePoint 2013 (Power Pivot Configuration Tool)
Power Pivot Configuration using Windows PowerShell
PowerShell Reference for Power Pivot for SharePoint
5. Verify that upgrade succeeded by performing the post-upgrade steps and by checking the version of Power
Pivot servers in the farm. For more information, see Post-upgrade verification tasks in this topic and the
following section.
1. Download Service Pack 2 for Microsoft SharePoint 2010 and apply it on all servers in the farm. Verify that
SharePoint SP2 installation succeeded. In Central Administration, on the Upgrade and Migration page, open
the Check product and patch installation status page to view status messages related to SP2.
2. Verify that the SharePoint 2010 Administration Windows service is running.
3. Verify the SharePoint services SQL Server Analysis Services and SQL Server Power Pivot System
Service are started in SharePoint Central Administration or use the following PowerShell command:.
4. Verify the Windows service SQL Server Analysis Services ( Power Pivot) is running.
5. Run SQL Server 2017 Setup on the first SharePoint application server that runs the SQL Server Analysis
Services ( Power Pivot) Windows service to upgrade the POWERPIVOT instance. On the Installation page
of the SQL Server Setup Wizard, choose the upgrade option. For more information, see Upgrade to SQL
Server 2016 Using the Installation Wizard (Setup).
6. Restart the server before running the configuration tool. This step ensures that any updates or
prerequisites installed by SQL Server Setup are fully configured on the system.
7. Run the Power Pivot Configuration Tool on the first SharePoint application server that runs SQL Server
Analysis Services ( Power Pivot) service to upgrade the solutions and Web services in SharePoint. You
cannot use Central Administration for this step.
a. On the Start menu, point to All Programs, click Microsoft SQL Server 2017, click Configuration
Tools, and then click Power Pivot Configuration Tool. Note that this tool is listed only when
Power Pivot for SharePoint is installed on the local server.
b. At startup, the configuration tool checks the upgrade status of the Power Pivot farm solution and
Power Pivot web application solutions. If older versions of these solutions are detected, you will see
the message Newer versions of the Power Pivot solution files have been detected. Please select the
upgrade option to upgrade your farm. Click OK to close the message.
c. Click Upgrade Features, Services, Applications and Solutions, and then click OK to continue.
d. The following warning appears: Workbooks in the Power Pivot Management Dashboard are about
to be upgraded to the latest version. Any customizations you made to the existing workbooks will be
lost. Do you want to continue?
This warning refers to workbooks in the Power Pivot Management Dashboard that report on data
refresh activity. If you customized these workbooks, any changes you made to those workbooks will
be lost when existing files are replaced with newer versions.
Click Yes to overwrite the workbooks with newer versions. Otherwise, click No to return to the home
page. Save the workbooks to a different location so that you have a copy, and then return to this step
when you are ready to continue.
For more information about customizing workbooks used in the dashboard, see Customizing the
Power Pivot Management Dashboard.
e. Review the actions in the task list and exclude any that you do not want the tool to perform. All
actions are included by default. To remove an action, select it in the task list, and then clear the
Include this action in the task list checkbox on the Parameters page.
f. Optionally, review detailed information in the Output tab or Script tab.
The Output tab is a summary of the actions that will be performed by the tool. This information is
saved in log files at
c:\Program Files\Microsoft SQL Server\130\Tools\PowerPivotTools\ConfigurationTool\Log .
The Script tab shows the PowerShell cmdlets or references the PowerShell script files that the tool
will run.
g. Click Validate to check whether each action is valid. If Validate is not available, it means that all of
the actions are valid for your system. If Validate is available, you might have modified an input value
(for example, the Excel service application name), or the tool might have determined that a particular
action cannot be performed. If an action cannot be performed, you must exclude it or fix the
underlying conditions that cause the action to be flagged as invalid.
IMPORTANT
The first action, Upgrade Farm Solution, must always be processed first. It registers the PowerShell cmdlets
that are used to configure the server. If you get an error on this action, do not continue. Instead, use the
information provided by the error to diagnose and resolve the problem before processing additional actions
in the task list.
h. Click Run to perform all of the actions that are valid for this task. Run is available only after the
validation check is passed. When you click Run, the following warning appears, reminding you that
actions are processed in batch mode: All of the configuration settings that are flagged as valid in the
tool will be applied to the SharePoint farm. Do you want to continue?
i. Click Yes to continue.
j. Upgrading solutions and features in the farm can take several minutes to complete. During this time,
connection requests for Power Pivot data will fail with errors like Unable to refresh data or An
error has occurred trying to perform the requested action. Please try again. After upgrade is
finished, the server will become available and these errors will no longer occur.
8. Repeat the process for each SQL Server Analysis Services ( Power Pivot) service in the farm: 1) Run SQL
Server setup 2) Run the Power Pivot Configuration tool.
9. Verify that upgrade succeeded by performing the post-upgrade steps and by checking the version of Power
Pivot servers in the farm. For more information, see Post-upgrade verification tasks in this topic and the
following section.
10. Troubleshooting errors
You can view error information in the Parameters pane for each action.
For problems related to solution deployment or retraction, verify the SharePoint 2010 Administrator service
is started. This service runs the timer jobs that trigger configuration changes in a farm. If the service is not
running, solution deployment or retraction will fail. Persistent errors indicate that an existing deployment or
retraction job is already in the queue and blocking further action from the configuration tool.
a. Start the SharePoint 2010 Management Shell as an administrator and then run the following
command to view jobs in the queue:
Stsadm o enumdeployments
b. Review existing deployments for the following information: Type is Retraction or Deployment, File is
powerpivotwebapp.wsp or powerpivotfarm.wsp.
c. For deployments or retractions related to Power Pivot solutions, copy the GUID value for JobId and
then paste it into the following command (use the Mark, Copy, and Paste commands on the Shells
Edit menu to copy the GUID):
d. Retry the task in the configuration tool by clicking Validate followed by Run.
For all other errors, check the ULS logs. For more information, see Configure and View SharePoint
Log Files and Diagnostic Logging (Power Pivot for SharePoint).
Workbooks
Upgrading a server does not necessarily upgrade the Power Pivot workbooks that run on it, but older workbooks
created in the previous version of Power Pivot for Excel will continue to work as before, using the features
available in that release. Workbooks remain functional because an upgraded server has the version of the Analysis
Services OLE DB provider that was part of the previous installation.
Data Refresh
Upgrade will impact data refresh operations. Scheduled data refresh on the server is available only for workbooks
that match the server version. If you are hosting workbooks from the previous version, data refresh might no
longer work for those workbooks. To re-enable data refresh, you must upgrade the workbooks. You can upgrade
each workbook manually in Power Pivot for Excel, or enable the auto-upgrade for data refresh feature in
SharePoint 2010. Auto-upgrade will upgrade a workbook to the current version prior to running data refresh,
allowing data refresh operations to remain on schedule.
Get-PowerPivotSystemService
Verify the CurrentSolutionVersion. SQL Server 2017 is version 13.0.<major build>.<minor build>
Verify the version of the Analysis Services Windows Service
If you upgraded only some of your Power Pivot for SharePoint servers in a SharePoint 2010 farm, the instance of
Analysis Services on un-upgraded servers will be older than the version expected in the farm. You will need to
upgrade all of your servers to the same version in order for them to be usable. Use one of the following methods
to verify the version of the SQL Server Analysis Services ( Power Pivot) Windows service on each computer.
Windows File Explorer:
1. Navigate to the Bin folder for the Power Pivot instance. For example
C:\Program Files\Microsoft SQL Server\MSAS13.POWERPIVOT\OLAP\bin .
IMPORTANT
In a multi-server deployment, be sure to both patch and configure each instance before continuing to the next
machine. The Power Pivot Configuration Tool must complete the upgrade task for the current instance before you
move on to the next instance.
To check version information for services in the farm, use the Check product and patch installation
status page in the Upgrade and Patch Management section in Central Administration.
Verify the service is running on all computers that run Power Start or Stop a Power Pivot for SharePoint Server
Pivot for SharePoint.
Verify feature activation at the site collection level. Activate Power Pivot Feature Integration for Site Collections in
Central Administration
Verify individual Power Pivot workbooks are loading properly Check for the presence of cached files on the hard drive. A
by opening a workbook and clicking on filters and slicers to cached file confirms that the data file was loaded on that
initiate a query. physical server. Look for cached files in the c:\Program
Files\Microsoft SQL
Server\MSAS13.POWERPIVOT\OLAP\Backup folder.
Test data refresh on selected workbooks that are configured The easiest way to test data refresh is to modify a data refresh
for data refresh. schedule, choosing the Also refresh as soon as possible
checkbox so that data refresh runs immediately. This step will
determine whether data refresh is successful for the current
workbook. Repeat these steps for other frequently used
workbooks to ensure that data refresh is functional. For more
information about scheduling data refresh, see Schedule a
Data Refresh (Power Pivot for SharePoint).
Over time, monitor the data refresh reports in Power Pivot Power Pivot Management Dashboard and Usage Data
Management Dashboard to confirm there are no data refresh
errors.
For more information about how to configure Power Pivot settings and features, see Power Pivot Server
Administration and Configuration in Central Administration.
For step-by-step instructions that guide you through all of the post-installation configuration tasks, see Initial
Configuration (Power Pivot for SharePoint).
See Also
Editions and Supported Features for SQL Server 2016
Power Pivot for SharePoint 2010 Installation
Upgrade Replicated Databases
3/29/2017 4 min to read Edit Online
SQL Server 2017 supports upgrading replicated databases from previous versions of SQL Server; it is not required
to stop activity at other nodes while a node is being upgraded. Ensure that you adhere to the rules regarding
which versions are supported in a topology:
A Distributor can be any version as long as it is greater than or equal to the Publisher version (in many
cases the Distributor is the same instance as the Publisher).
A Publisher can be any version as long as it less than or equal to the Distributor version.
Subscriber version depends on the type of publication:
A Subscriber to a transactional publication can be any version within two versions of the Publisher
version. For example: a SQL Server 2012 Publisher can have SQL Server 2014 and SQL Server 2016
Subscribers; and a SQL Server 2016 Publisher can have SQL Server 2014 and SQL Server 2012
Subscribers.
A Subscriber to a merge publication can be any version less than or equal to the Publisher version.
NOTE
This topic is available in the Setup Help documentation and in SQL Server Books Online. Topic links that appear as bold text
in the Setup Help documentation refer to topics that are only available in Books Online. You can design an upgrade
strategy for the Publisher, Subscriber and Distributor using the options outlined in this post.
See Also
Administration (Replication)
Replication Backward Compatibility
What's New (Replication)
Supported Version and Edition Upgrades
Upgrade to SQL Server 2016
Upgrade SQL Server Management Tools
3/24/2017 1 min to read Edit Online
SQL Server 2017 supports upgrade from SQL Server 2008 and later. This topic documents support and behavior
for upgrading SQL Server Management Tools and management components such as SQL Server Agent, Database
Mail, Maintenance Plans, XPStar, and XPWeb.
IMPORTANT
For local installations, you must run SQL Server Setup as an administrator. If you run SQL Server Setup from a remote share,
you must use a domain account that has read and execute permissions on the remote share.
See Also
Supported Version and Edition Upgrades
Backward Compatibility_deleted
Upgrade to SQL Server 2016 Using the Installation Wizard (Setup)
Upgrade SQL Server Using the Installation Wizard
(Setup)
3/29/2017 8 min to read Edit Online
The SQL Server Installation Wizard provides a single feature tree for an in-place upgrade of SQL Server
components to SQL Server 2017.
WARNING
When you upgrade SQL Server, the previous SQL Server instance will be overwritten and will no
longer exist on your computer. Before upgrading, back up SQL Server databases and other objects
associated with the previous SQL Server instance.
Cau t i on
For many production and some development environments, a new installation upgrade or a rolling upgrade is
more appropriate than an in-place upgrade. For more information regarding upgrade methods, see Choose a
Database Engine Upgrade Method, Upgrade Data Quality Services, Upgrade Integration Services, Upgrade
Master Data Services, Upgrade and Migrate Reporting Services, Upgrade Analysis Services and Upgrade Power
Pivot for SharePoint.
Prerequisites
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, and is a local administrator.
WARNING
Be aware that you cannot change the features to be upgraded, and you cannot add features during the upgrade
operation. For more information about how to add features to an upgraded instance of SQL Server 2017 after the
upgrade operation is complete, see Add Features to an Instance of SQL Server 2016 (Setup).
If you are upgrading the Database Engine, review Plan and Test the Database Engine Upgrade Plan and then
perform the following tasks, as appropriate for your environment:
Back up all SQL Server database files from the instance to be upgraded, so that you can restore them, if it
is required.
Run the appropriate Database Console Commands (DBCC) on databases to be upgraded to ensure that
they are in a consistent state.
Estimate the disk space that is required to upgrade SQL Server components, in addition to user databases.
For disk space that is required by SQL Server components, see Hardware and Software Requirements for
Installing SQL Server 2016.
Ensure that existing SQL Server system databases - master, model, msdb, and tempdb - are configured to
autogrow, and ensure that they have sufficient hard disk space.
Ensure that all database servers have logon information in the master database. This is important for
restoring a database, as system logon information resides in master.
Disable all startup stored procedures, as the upgrade process will stop and start services on the SQL
Server instance being upgraded. Stored procedures processed at startup time might block the upgrade
process.
When upgrading instances of SQL Server where SQL Server Agent is enlisted in MSX/TSX relationships,
upgrade target servers before you upgrade master servers. If you upgrade master servers before target
servers, SQL Server Agent will not be able to connect to master instances of SQL Server.
Quit all applications, including all services that have SQL Server dependencies. Upgrade might fail if local
applications are connected to the instance being upgraded.
Make sure that Replication is current and then stop Replication.
For detailed steps for performing a rolling upgrade in a replicated environment, see Upgrade Replicated
Databases
Procedure
To upgrade to SQL Server 2017
1. Insert the SQL Server installation media, and from the root folder, double-click Setup.exe. To install from a
network share, move to the root folder on the share, and then double-click Setup.exe.
2. The Installation Wizard starts the SQL Server Installation Center. To upgrade an existing instance of SQL
Server, click Installation in the left-hand navigation area, and then click Upgrade from SQL Server
2008, SQL Server 2008 R2, SQL Server 2012, or SQL Server 2014.
3. On the Product Key page, click an option to indicate whether you are upgrading to a free edition of SQL
Server, or whether you have a PID key for a production version of the product. For more information, see
Editions and Components of SQL Server 2016 and Supported Version and Edition Upgrades.
4. On the License Terms page, review the license agreement and, if you agree, select the I accept the
license terms check box, and then click Next. To help improve SQL Server, you can also enable the
feature usage option and send reports to Microsoft.
5. In the Global Rules window, the setup procedure will automatically advance to the Product Updates
window if there are no rule errors.
6. The Microsoft Update page will appear next if the Microsoft Update check box in Control Panel\All Control
Panel Items\Windows Update\Change settings is not checked. Putting a check in the Microsoft Update
page will change the computer settings to include the latest updates when you scan for Windows Update.
7. On the Product Updates page, the latest available SQL Server product updates are displayed. If you don't
want to include the updates, clear the Include SQL Server product updates check box. If no product
updates are discovered, SQL Server Setup does not display this page and auto advances to the Install
Setup Files page.
8. On the Install Setup Files page, Setup provides the progress of downloading, extracting, and installing the
Setup files. If an update for SQL Server Setup is found, and is specified to be included, that update will also
be installed.
9. In the Upgrade Rules window, the setup procedure will automatically advance to the Select instance
window if there are no rule errors.
10. On the Select Instance page, specify the instance of SQL Server to upgrade. To upgrade Management
tools and shared features, select Upgrade shared features only.
11. On the Select Features page, the features to upgrade will be preselected. A description for each
component group appears in the right pane after you select the feature name.
The prerequisites for the selected features are displayed on the right-hand pane. SQL Server Setup will
install the prerequisite that are not already installed during the installation step described later in this
procedure.
NOTE
If you have opted to upgrade the shared features by selecting <Upgrade shared features only> on the Select
Instance page, all the shared features are preselected on the Feature Selection page. All the shared components
are upgraded at the same time.
12. On the Instance Configuration page, specify the Instance ID for the instance of SQL Server.
Instance ID By default, the instance name is used as the Instance ID. This is used to identify installation
directories and registry keys for your instance of SQL Server. This is the case for default instances and
named instances. For a default instance, the instance name and instance ID would be MSSQLSERVER. To
use a non-default instance ID, provide a value for the Instance ID textbox.
All SQL Server service packs and upgrades will apply to every component of an instance of SQL Server.
Installed instances The grid will show 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 2017.
13. Work flow for the rest of this topic depends on the features that you have specified for your installation.
You might not see all the pages, depending on your selections.
14. On the Server Configuration Service Accounts page, the default service accounts are displayed for SQL
Server services. The actual services that are configured on this page depend on the features that you are
upgrading.
Authentication and login information will be carried forward from the previous instance of SQL Server.
You can assign the same login account to all SQL Server services, or you can configure each service
account individually. You can also specify whether services start automatically, are started manually, or
are disabled. Microsoft recommends that you configure service accounts individually so that SQL Server
services are granted the minimum permissions they have to have to complete their tasks. For more
information, see Configure Windows Service Accounts and Permissions.
To specify the same login account for all service accounts in this instance of SQL Server, provide
credentials in the fields at the bottom of the page.
Security Note Do not use a blank password. Use a strong password.
When you are finished specifying login information for SQL Server services, click Next.
15. On the Full-Text Search Upgrade Options page, specify the upgrade options for the databases being
upgraded. For more information, see Full-Text Search Upgrade Options.
16. The Feature Rules window will automatically advance if all rules pass.
17. The Ready to Upgrade page displays a tree view of installation options that were specified during Setup.
To continue, click Install. SQL Server Setup will first install the required prerequisites for the selected
features followed by the feature installation.
18. During installation, the progress page provides status so that you can monitor installation progress as
Setup continues.
19. After installation, the Complete page provides a link to the summary log file for the installation and other
important notes. To complete the SQL Server installation process, click Close.
20. If you are instructed to restart the computer, do so now. It is important to read the message from the
Installation Wizard when you have finished with Setup. For more information about Setup log files, see
View and Read SQL Server Setup Log Files.
Next Steps
After you upgrade to SQL Server, complete the following tasks:
Register your servers Upgrade removes registry settings for the previous instance of SQL Server.
After you upgrade, you must reregister your servers.
Update statistics To help optimize query performance, we recommend that you update statistics on
all databases following upgrade. Use the sp_updatestats stored procedure to update statistics in user-
defined tables in SQL Server databases.
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 about surface area
configuration, see the readme file for this release.
See Also
Upgrade to SQL Server 2016
Backward Compatibility_deleted
Upgrade to a Different Edition of SQL Server (Setup)
3/29/2017 3 min to read Edit Online
SQL Server Setup supports edition upgrade among various editions of SQL Server 2017. For information about
supported edition upgrade paths, see Supported Version and Edition Upgrades. Before you initiate the edition
upgrade of an instance of SQL Server 2017, review the following topics:
Features Supported by the Editions of SQL Server 2016
Editions and Components of SQL Server 2016
Compute Capacity Limits by Edition of SQL Server
Hardware and Software Requirements for Installing SQL Server 2016
NOTE
SQL Server in a clustered environment: Running edition upgrade on one of the nodes of SQL Server cluster is sufficient.
This node can be either active or passive, and the engine does not bring the resources offline during the Edition Upgrade.
After the edition upgrade it is required to either restart the SQL Server instance or failover to a different node.
Prerequisites
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 permissions on the remote share.
IMPORTANT
For the SQL Server edition change to be activated, you must restart SQL Server services. This will result in application down
time while services are offline.
Procedure
To upgrade to a different edition of SQL Server 2017
1. Insert the SQL Server installation media. From the root folder, double-click setup.exe or launch the SQL
Server Installation Center from Configuration Tools. To install from a network share, locate the root folder
on the share, and then double-click Setup.exe.
2. To upgrade an existing instance of SQL Server 2017 to a different edition, from the SQL Server Installation
Center click Maintenance, and then select Edition Upgrade.
3. If Setup support files are required, SQL Server Setup installs them. If you are instructed to restart your
computer, restart before you continue.
4. The System Configuration Checker runs a discovery operation on your computer. To continue, click OK.
5. On the Product Key page, select a radio button to indicate whether you are upgrading to a free edition of
SQL Server, or whether you have a PID key for a production version of the product. For more information,
see Editions and Components of SQL Server 2016 and Supported Version and Edition Upgrades.
6. On the License Terms page, read the license agreement, and then select the check box to accept the
licensing terms and conditions. To continue, click Next. To end Setup, click Cancel.
7. On the Select Instance page, specify the instance of SQL Server to upgrade.
8. The Edition Upgrade Rules page validates your computer configuration before the edition upgrade
operation begins.
9. The Ready to Upgrade Edition page shows a tree view of installation options that were specified during
Setup. To continue, click Upgrade.
10. During the edition upgrade process, the services need to be restarted to pick up the new setting. After
edition upgrade, the Complete page provides a link to the summary log file for the edition upgrade. To close
the wizard, click Close.
11. The Complete page provides a link to the summary log file for the installation and other important notes.
12. If you are instructed to restart the computer, do so now. It is important to read the message from the
Installation Wizard when you are done with Setup. For information about Setup log files, see View and Read
SQL Server Setup Log Files.
13. If you upgraded from SQL Server Express, you must perform additional steps before you can use your
upgraded instance of SQL Server:
Enable the SQL Server Agent service in Windows SCM.
Provision the SQL Server Agent service account by using SQL Server Configuration Manager.
In addition to the steps above, you may need to do the following if you upgraded from SQL Server Express:
Users that were provisioned in SQL Server Express remain provisioned after the upgrade. Specifically, the
BUILTIN\Users group remains provisioned. Disable, remove, or reprovision these accounts as needed. For
more information, see Configure Windows Service Accounts and Permissions.
Sizes and recovery mode for the tempdb and model system databases remain unchanged after the upgrade.
Reconfigure these settings as needed. For more information, see Back Up and Restore of System Databases
(SQL Server).
Template databases remain on the computer after the upgrade.
See Also
Upgrade to SQL Server 2016
Backward Compatibility_deleted
Install SQL Server
5/11/2017 3 min to read Edit Online
For content related to previous versions of SQL Server, see Install SQL Server 2014.
SQL Server 2016 is a 64-bit application. Here are important details about how to get SQL Server and how to install
it.
Installation details
Options: Install through the Installation Wizard, a command prompt, or through sysprep
Requirements: Before you install, take some time to review installation requirements, system configuration
checks, and security considerations in Planning a SQL Server Installation
Process: See Installation for SQL Server for complete instructions on the installation process
Sample databases and sample code:
They are not installed as part of SQL Server setup by default
To install them for non-Express editions of SQL Server, see the CodePlex Web site
To read about support for SQL Server sample databases and sample code for SQL Server Express, see
Databases and Samples Overview
EDITION DESCRIPTION
Developer Edition Free, full-featured set of SQL Server 2016 Enterprise edition
software that allows developers to build, test, and
demonstrate applications in a non-production environment.
Express Edition Entry-level, free database that is ideal for deploying small
databases in production environments. Build desktop, and
small server, data-driven applications up to 10 GB of disk size.
Evaluation Edition Full feature set of SQL Server Enterprise edition software that
provides a 180 day evaluation period.
Install SQL Server 2016 on Server Core Review this topic to install SQL Server 2017 on Windows
Server Core.
Check Parameters for the System Configuration Checker Discusses the function of the System Configuration Checker
(SCC).
Install SQL Server 2016 from the Installation Wizard (Setup) Procedural topic for a typical SQL Server installation by using
the Installation Wizard.
Install SQL Server 2016 from the Command Prompt Procedural topic that provides sample syntax and installation
parameters for running unattended Setup.
Install SQL Server 2016 Using a Configuration File Procedural topic that provides sample syntax and installation
parameters for running Setup through a configuration file.
Install SQL Server 2016 Using SysPrep Procedural topic that provides sample syntax and installation
parameters for running Setup through SysPrep.
Add Features to an Instance of SQL Server 2016 (Setup) Procedural topic for updating components of an existing
instance of SQL Server 2017.
Repair a Failed SQL Server 2016 Installation Procedural topic for repairing a corrupt SQL Server 2017
installation.
Rename a Computer that Hosts a Stand-Alone Instance of Procedural topic for updating system metadata that is stored
SQL Server in sys.servers.
Install SQL Server 2016 Servicing Updates Procedural topic for installing updates for SQL Server 2016.
View and Read SQL Server Setup Log Files Procedural topic for checking errors in setup log files.
Validate a SQL Server Installation Review the use of the SQL Discovery report to verify the
version of SQL Server and the SQL Server features installed on
the computer.
Install SQL Server Database Engine Describes how to install and configure the SQL Server
Database Engine.
Install SQL Server Replication Describes how to install and configure SQL Server Replication.
Install Distributed Replay - Overview Lists down the topics to install the Distributed Replay feature.
Install SQL Server Management Tools with SSMS Describes how to install and configure SQL Server
management tools.
Install SQL Server PowerShell Describes the considerations for installing SQL Server
PowerShell components.
How to configure SQL Server
TOPIC DESCRIPTION
Configure the Windows Firewall to Allow SQL Server Access This topic provides an overview of firewall configuration and
how to configure the Windows firewall.
Configure a Multi-Homed Computer for SQL Server Access This topic describes how to configure SQL Server and
Windows Firewall with Advanced Security to provide for
network connections to an instance of SQL Server in a multi-
homed environment.
Configure the Windows Firewall to Allow Analysis Services You can follow the steps provided in this topic to configure
Access both port and firewall settings to allow access to Analysis
Services or Power Pivot for SharePoint.
Related sections
Editions and Supported Features for SQL Server 2016
Install SQL Server 2016 Business Intelligence Features
SQL Server Failover Cluster Installation
See also
Planning a SQL Server Installation
Upgrade to SQL Server 2016
Uninstall SQL Server 2016
High Availability Solutions (SQL Server)
Install SQL Server Database Engine
3/29/2017 1 min to read Edit Online
The Database Engine component of SQL Server is the core service for storing, processing, and securing data. The
Database Engine provides controlled access and rapid transaction processing to meet the requirements of the most
demanding data consuming applications in your enterprise.
SQL Server supports up to 50 instances of the Database Engine on a single computer. To create a typical SQL
Server installation, see Install SQL Server 2016 from the Installation Wizard (Setup).
Important 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.
The following features are installed when you select SQL Server Database Engine on the Components to Install
page of the SQL Server Installation Wizard:
Database Engine
Replication - is an optional component
Full-Text Search - is an optional component
Data Quality Services is an optional component
NOTE
In this release, selecting the Data Quality Services check box in setup does not install the Data Quality Services
(DQS) server. You will have to perform additional steps post installation to install DQS server. For more information,
see Install Data Quality Services.
The following additional features are options for many typical user scenarios:
Data Quality Client
Integration Services
Connectivity components
Programming models
Management tools
Management Studio
Documentation components
NOTE
By default, sample databases and sample code are not installed as part of SQL Server Setup. To install sample databases and
sample code, see the CodePlex Web site.
See Also
Features Supported by the Editions of SQL Server 2016
Editions and Components of SQL Server 2016
Planning a SQL Server Installation
High Availability Solutions (SQL Server)
Upgrade to SQL Server 2016 Using the Installation Wizard (Setup)
Install SQL Server Replication
3/29/2017 1 min to read Edit Online
Replication components can be installed by using the SQL Server Installation Wizard or at a command prompt.
Install replication when you install SQL Server, or when you modify an existing instance.
After replication components are installed, you must configure the server before you can use replication. For more
information, see Configure Distribution in SQL Server Books Online.
IMPORTANT
If you install replication components when you modify an existing instance of SQL Server, you must stop and restart SQL
Server Agent after the installation is completed. This action helps ensure that SQL Server Agent recognizes the replication
agent subsystems and can call replication agents from job steps.
See Also
Install SQL Server 2016
Install SQL Server 2016 from the Command Prompt
Features Supported by the Editions of SQL Server 2016
Install SQL Server PowerShell
3/29/2017 1 min to read Edit Online
See Also
SQL Server PowerShell
Install SQL Server with SMB Fileshare as a Storage
Option
3/29/2017 5 min to read Edit Online
Starting with SQL Server 2012, system databases (Master, Model, MSDB, and TempDB), and Database Engine user
databases can be installed with Server Message Block (SMB) file server as a storage option. This applies to both
SQL Server stand-alone and SQL Server failover cluster installations (FCI).
NOTE
Filestream is currently not supported on an SMB file share.
Installation Considerations
SMB File share Formats:
While specifying the SMB file share, the following are supported Universal Naming Convention (UNC) Path formats
for standalone and FCI databases:
\\ServerName\ShareName\
\\ServerName\ShareName
For more information about Universal Naming Convention, see UNC (http://go.microsoft.com/fwlink/?
LinkId=245534).
The loopback UNC path (a UNC path whose server name is localhost, 127.0.0.1, or the local machine name)
is not supported. As a special case, SQL Server using File Server Cluster which is hosted on the same node
SQL Server is running is also not supported. To prevent this situation, it is recommended that SQL Server
and File Server Cluster to be created on separated Windows Clusters.
The below UNC path formats are not supported:
Loopback path, e.g., \\localhost\..\ or \\127.0.0.1\...\
Administrative shares, e.g., \\servername\x$
Other UNC path formats like \\?\x:\
Mapped network drives.
Supported Data Definition Language (DDL ) statements
The following Transact-SQL DDL statements and database engine stored procedures support SMB file shares:
1. CREATE DATABASE (SQL Server Transact-SQL)
2. ALTER DATABASE (Transact-SQL)
3. RESTORE (Transact-SQL)
4. BACKUP (Transact-SQL)
5. sp_attach_db (Transact-SQL)
6. sp_attach_single_file_db (Transact-SQL)
Installation options
In setup UI Database Engine Configuration page, Data Directories tab, set the parameter Data root
directory as \\fileserver1\share1\.
In command prompt installation, specify the /INSTALLSQLDATADIR as \\fileserver1\share1\.
Here is the sample syntax to install SQL Server on a Standalone server using SMB file share option:
To install a single-node SQL Server failover cluster instance with the Database Engine and Analysis Services,
default instance:
For more information about the usage of various command line parameter options in SQL Server 2017, see
Install SQL Server 2016 from the Command Prompt.
Windows Server 2008 R2 SP 1, 2.1 Support for large MTU, which benefits
including Server Core large data transfers, such as SQL
backup and restore. This capability must
be enabled by user. For more details on
how to enable this capability, see
Whats New in SMB
(http://go.microsoft.com/fwlink/?
LinkID=237319).
Windows Server 2012, including Server 3.0 Support for transparent failover of file
Core shares providing zero downtime with no
administrator intervention required for
SQL DBA or file server administrator in
file server cluster configurations.
Windows Server 2012 R2, including 3.2 Support for transparent failover of file
Server Core shares providing zero downtime with no
administrator intervention required for
SQL DBA or file server administrator in
file server cluster configurations.
Security Considerations
The SQL Server service account and SQL Server agent service account should have FULL CONTROL share
permissions and NTFS permissions on the SMB share folders. The SQL Server service account can be a
domain account or a system account if an SMB file server is used. For more information about share and
NTFS permissions, see Share and NTFS Permissions on a File Server (http://go.microsoft.com/fwlink/?
LinkId=245535).
NOTE
The FULL CONTROL share permissions and NTFS permissions on the SMB share folders should be restricted to: SQL
Server service account, SQL Server Agent service account and windows users with admin server roles.
It is recommended to use domain account as a SQL Server service account. If system account is used as a
service account, grant the permissions for the machine account in the format: \$.
NOTE
During SQL Server setup, it is required to specify domain account as a service account if SMB file share is specified as
a storage option. With SMB file share, System account can only be specified as a service account post SQL Server
installation.
Virtual accounts cannot be authenticated to a remote location. All virtual accounts use the permission of machine
account. Provision the machine account in the format \$.
The account used to install SQL Server should have FULL CONTROL permissions on the SMB file share
folder used as the data directory, or any other data folders (User database directory, user database log
directory, TempDB directory, TempDB log directory, backup directory) during Cluster Setup.
The account used to install SQL Server should be granted SeSecurityPrivilege privileges on the SMB file
server. To grant this privilege, use the Local Security Policy console on the file server to add the SQL Server
setup account to the Manage auditing and security log policy. This setting is available in the User Rights
Assignments section under Local Policies in the Local Security Policy console.
Known Issues
After you detach a SQL Server 2017 database that resides on network-attached storage, you might run into
database permission issue while trying to reattach the SQL Server database. The issue is defined in this KB
article (http://go.microsoft.com/fwlink/?LinkId=237321). To work around this issue, see the More
Information section in the KB article.
If SMB file share is used as a storage option for a clustered instance of SQL Server, by default the SQL Server
Failover Cluster Diagnostics Log cannot be written to the file share because SQL Server Resource DLL lacks
the read/write permission on the file share. To resolve this issue, try one of the following methods:
1. Grant read/write permissions on the file share to all computer objects in the cluster.
2. Set the location of the diagnostic logs to a local file path. See the following example:
See Also
Planning a SQL Server Installation
Configure Windows Service Accounts and Permissions
Considerations for Installing SQL Server Using
SysPrep
3/29/2017 3 min to read Edit Online
SQL Server SysPrep allows you to prepare a stand-alone instance of SQL Server on a computer and to complete
the configuration at a later time. SQL Server SysPrep involves a two-step process to get to a configured stand-
alone instance of SQL Server. The steps include the following:
Prepare Image
This step stops the installation process after the product binaries are installed, without configuring the
computer, network, or account-specific information for the instance of SQL Server that is being prepared.
Complete Image
This step enables you to complete the configuration of a prepared instance of SQL Server. During this step,
you can provide the computer, network, and account-specific information.
For more information about how to install SQL Server using SysPrep, see Install SQL Server 2016 Using
SysPrep.
Prepare Image
The Prepare Image step installs the SQL Server product and features but does not configure the installation.
The SQL Server features to be installed and the installation location for SQL Server product installation files can be
specified during this step. You can prepare an instance of SQL Server either through the Image Preparation of a
stand-alone instance for SysPrep deployment on the Advanced page of the Installation Center or from the
command prompt.
You can prepare multiple instances of SQL Server on the same computer that can be completed later.
You can add or remove features that are supported for SysPrep installations from the existing prepared
instances of SQL Server.
After the instance is prepared, a shortcut on the Start menu becomes available to complete the
configuration of the prepared instance of SQL Server.
Complete Image
You can complete the prepared instances of SQL Server by using either of the following methods:
Use the shortcut on the Start menu.
Access the Image completion of a prepared stand-alone instance step on the Advanced page of the
Installation Center.
See Also
Planning a SQL Server Installation
Check Parameters for the System Configuration
Checker
3/29/2017 1 min to read Edit Online
During SQL Server Setup, the System Configuration Checker (SCC) scans the computer where SQL Server will be
installed. The SCC checks for conditions that prevent a successful SQL Server installation. Before Setup starts the
SQL Server Installation Wizard, the SCC retrieves the status of each item. It then compares the result with required
conditions and provides guidance for removal of blocking issues.
The system configuration checker generates a report which contains a short description for each executed rule, and
the execution status. The system configuration check report is located at %programfiles%\ Microsoft SQL
Server\130\Setup Bootstrap\Log\\.
See Also
Hardware and Software Requirements for Installing SQL Server 2016
Security Considerations for a SQL Server Installation
Supported Version and Edition Upgrades
Configure SQL Server on a Server Core Installation
4/5/2017 9 min to read Edit Online
This topic covers details about configuring SQL Server on a Server Core installation.
Installing Updates for SQL Server 2017 After It Has Been Installed
On an installed instance of SQL Server 2017, we recommend that you apply the latest security updates and critical
updates including General Distribution Releases (GDRs), and Service Packs (SPs). Individual Cumulative updates
and security updates should be adopted on a case-by-case, "as-needed" basis. Evaluate the update; if it's needed,
then apply it.
Apply an update at a command prompt, replacing with the name of your update package:
Update a single instance of SQL Server and all shared components. You can specify the instance either by
using the InstanceName parameter or the InstanceID parameter.
Update all instances of SQL Server on the computer and all shared components:
NOTE
You must have the appropriate user rights or you must have been delegated the appropriate authority on the target
computer to connect to that computer.
The name of the computer that you are managing appears in parentheses next to Computer Management in the
console tree.
The following PowerShell command enables AlwaysOn Availability Groups on an instance of SQL Server
(Machine\Instance):
GO
GO
After it is enabled, run the following command from the command prompt to start the service:
net start SQLBROWSER
$smo = 'Microsoft.SqlServer.Management.Smo.'
$wmi = new-object ($smo + 'Wmi.ManagedComputer')
# Enable the TCP protocol on the default instance. If the instance is named, replace MSSQLSERVER with the
instance name in the following line.
$uri = "ManagedComputer[@Name='" + (get-item env:\computername).Value +
"']/ServerInstance[@Name='MSSQLSERVER']/ServerProtocol[@Name='Tcp']"
$Tcp = $wmi.GetSmoObject($uri)
$Tcp.IsEnabled = $true
$Tcp.Alter()
$Tcp
bcp Utility Used to copy data between an instance <drive>:\Program Files\Microsoft SQL
of Microsoft SQL Server and a data file Server\130\Tools\Binn
in a user-specified format.
sqlagent90 Application Used to start SQL Server Agent from a <drive>:\Program Files\ Microsoft SQL
command prompt. Server\<instance_name>\MSSQL\Binn
sqlmaint Utility Used to execute database maintenance <drive>:\Program Files\ Microsoft SQL
plans created in previous versions of Server\MSSQL13.MSSQLSERVER\MSSQ
SQL Server. L\Binn
sqlps Utility Used to run PowerShell commands and <drive>:\Program Files\Microsoft SQL
scripts. Loads and registers the SQL Server\130\Tools\Binn
Server PowerShell provider and cmdlets.
sqlservr Application Used to start and stop an instance of <drive>:\Program Files\ Microsoft SQL
Database Engine from the command Server\MSSQL13.MSSQLSERVER\MSSQ
prompt for troubleshooting. L\Binn
See Also
Install SQL Server 2016 on Server Core
Installation How-to Topics
Install SQL Server on Server Core
4/5/2017 11 min to read Edit Online
You can install SQL Server on a Server Core installation. This topic provides setup-specific details for installing SQL
Server 2017 on Server Core.
The Server Core installation option provides a minimal environment for running specific server roles. This helps to
reduce maintenance and management requirements and the attack surface for those server roles. For more
information on Server Core, see Install Server Core. For more information on Server Core as implemented on
Windows Server 2012, see Server Core for Windows Server 2012
(http://msdn.microsoft.com/library/hh846323(VS.85).aspx).
For a list of currently supported operating systems, see Hardware and Software Requirements for Installing SQL
Server.
Prerequisites
REQUIREMENT HOW TO INSTALL
.NET Framework 4.6.1 For all editions of SQL Server 2017 except SQL Server Express,
Setup requires the .NET Framework 4.6.1 Server Core Profile.
SQL Server Setup will automatically install this if it is not
already installed. Installation requires a reboot. You can install
.NET Framework before you run setup to avoid a reboot.
Java Runtime In order to use PolyBase, you need to install the appropriate
Java Runtime. For more information, see PolyBase installation.
Supported Features
Use the following table to find which features are supported in SQL Server 2017 on a Server Core installation .
Reporting Services No
FEATURE SUPPORTED ADDITIONAL INFORMATION
Integration Services Server Yes For more information about the new
Integration Services Server and its
features in SQL Server 2017, see
Integration Services (SSIS) Server.
SQL Server language on OS language/locale (combination) ENG SQL Server on JPN (Japanese) Windows
Upgrade
On Server Core installations, upgrading from SQL Server 2014 to SQL Server 2016 is supported.
Install
SQL Server 2017 does not support setup by using the installation wizard on the Server Core operating system.
When installing on Server Core, SQL Server Setup supports full quiet mode by using the /Q parameter, or Quiet
Simple mode by using the /QS parameter. For more information, see Install SQL Server 2016 from the Command
Prompt.
IMPORTANT
SQL Server 2017 cannot be installed side-by-side with earlier versions of SQL Server on a computer that is running Windows
Server 2008 R2 Server Core SP1 or Windows Server 2012 Server Core.
Regardless of the installation method, you are required to confirm acceptance of the software license terms as an
individual or on behalf of an entity, unless your use of the software is governed by a separate agreement such as a
Microsoft volume licensing agreement or a third-party agreement with an ISV or OEM.
The license terms are displayed for review and acceptance in the Setup user interface. Unattended installations
(using the /Q or /QS parameters) must include the /IACCEPTSQLSERVERLICENSETERMS parameter. You can
review the license terms separately at Microsoft Software License Terms.
NOTE
Depending on how you received the software (for example, through Microsoft volume licensing), your use of the software
may be subject to additional terms and conditions.
To install specific features, use the /FEATURES parameter and specify the parent feature or feature values. For
more information about feature parameters and their use, see the following sections.
Feature parameters
FEATURE PARAMETER DESCRIPTION
Installation options
The Setup supports the following installation options while installing SQL Server 2017 on a Server Core operating
system:
1. Installation from Command Line
To install specific features using the command prompt installation option, use the /FEATURES parameter
and specify the parent feature or feature values. The following is an example of using the parameters from
the command line:
; Specifies a Setup work flow, like INSTALL, UNINSTALL, or UPGRADE. This is a required parameter.
ACTION="Install"
; Specifies features to install, uninstall, or upgrade. The lists of features include SQLEngine,
FullText, Replication, AS, IS, and Conn.
FEATURES=SQLENGINE
; 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 ssNoVersion Database
Engine, and Analysis Services (AS).
INSTANCENAME="MSSQLSERVER"
; Specify the Instance ID for the ssNoVersion features you have specified. ssNoVersion directory
structure, registry structure, and service names will incorporate the instance ID of the ssNoVersion
instance.
INSTANCEID="MSSQLSERVER"
SQLSVCACCOUNT="NT Service\MSSQLSERVER"
SQLSYSADMINACCOUNTS="\<DomainName\UserName>"
IAcceptSQLServerLicenseTerms="True"
```
Installing connectivity components. The following example shows how to install the connectivity
components:
; Specifies a Setup work flow, like INSTALL, UNINSTALL, or UPGRADE. This is a required
parameter.
ACTION="Install"
; Specifies features to install, uninstall, or upgrade. The lists of features include SQLEngine,
FullText, Replication, AS, IS, and Conn.
FEATURES=Conn
IAcceptSQLServerLicenseTerms="True
ACTION="Install"
; Specifies features to install, uninstall, or upgrade. The lists of features include SQLEngine,
FullText, Replication, AS, IS, and Conn.
FEATURES=SQLENGINE,FullText,Replication,AS,IS,Conn
; 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
ssNoVersion Database Engine (SQL), or Analysis Services (AS).
INSTANCENAME="MSSQLSERVER"
; Specify the Instance ID for the ssNoVersion features you have specified. ssNoVersion directory
structure, registry structure, and service names will incorporate the instance ID of the
ssNoVersion instance.
INSTANCEID="MSSQLSERVER"
SQLSVCACCOUNT="NT Service\MSSQLSERVER"
SQLSYSADMINACCOUNTS="\<DomainName\UserName>"
; The name of the account that the Analysis Services service runs under.
ASSYSADMINACCOUNTS="\<DomainName\UserName>"
; Specifies the server mode of the Analysis Services instance. Valid values are
MULTIDIMENSIONAL, POWERPIVOT or TABULAR. ASSERVERMODE is case-sensitive. All values must be
expressed in upper case.
ASSERVERMODE="MULTIDIMENSIONAL"
; Optional value, which specifies the state of the TCP protocol for the ssNoVersion service.
Supported values are: 0 to disable the TCP protocol, and 1 to enable the TCP protocol.
TCPENABLED=1
IAcceptSQLServerLicenseTerms="True"
The following shows how you can launch Setup using a custom or default configuration file:
Launch setup using a custom configuration file:
To specify the configuration file at the command prompt:
After it is enabled, run the following command from the command prompt to start the service:
net start SQLBROWSER
Uninstall
After you log on to a computer that is running Server Core, you have a limited desktop environment with an
Administrator command prompt. You can use this command prompt to launch the uninstall an of SQL Server
2017. To uninstall an instance of SQL Server 2017, launch the uninstallation from the command prompt in full
quiet mode by using the /Q parameter, or quiet simple mode by using the /QS parameter. The /QS parameter
shows progress through the UI, but does not accept any input. /Q runs in a quiet mode without any user interface.
To uninstall an existing instance of SQL Server:
To remove a named instance, specify the name of the instance instead of MSSQLSERVER in the preceding example.
See also
Install SQL Server 2016 Using a Configuration File
Install SQL Server 2016 from the Command Prompt
Features Supported by the Editions of SQL Server 2016
Install Server Core
Configure a Server Core installation of Windows Server 2016 with Sconfig.cmd
Failover Cluster Cmdlets in Windows PowerShell
Install SQL Server from the Installation Wizard
(Setup)
5/11/2017 11 min to read Edit Online
For content related to previous versions of SQL Server, see Install SQL Server 2014 from the Installation
Wizard (Setup).
This topic provides a step-by-step procedure for installing a new instance of SQL Server 2017 using the SQL
Server setup installation wizard. The SQL Server Installation Wizard provides a single feature tree for installation of
all SQL Server components so that you do not have to install them individually. For more information on various
components that can be installed, see Installation for SQL Server 2016. For more information about how to install
the SQL Server components individually, see Install SQL Server 2016.
These additional topics document other ways to install SQL Server:
Install SQL Server 2016 from the Command Prompt
Install SQL Server 2016 Using a Configuration File
Install SQL Server 2016 Using SysPrep
Create a New SQL Server Failover Cluster (Setup)
Upgrade to SQL Server 2016 Using the Installation Wizard (Setup)
Install Free Editions of SQL Server 2016 Directly from the Internet
Prerequisites
Before you install SQL Server, review topics in Planning a SQL Server Installation.
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.
NOTE
Typical stand-alone instances of SQL Server 2017, whether default or named instances, do not use a non-default
value for the Instance ID.
All SQL Server service packs and upgrades will apply to every component of an instance of SQL Server.
Installed instances The grid shows 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 2017.
The Work flow for the rest of the installation depends on the features that you have specified for your
installation. You might not see all the pages, depending on your selections.
13. Use the Server Configuration Service Accounts page to specify login accounts for SQL Server services.
The actual services that are configured on this page depend on the features that you selected to install.
You can assign the same login account to all SQL Server services, or you can configure each service account
individually. You can also specify whether services start automatically, are started manually, or are disabled.
Microsoft recommends that you configure service accounts individually to provide least privileges for each
service, where SQL Server services are granted the minimum permissions they have to 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
credentials in the fields at the bottom of the page.
IMPORTANT
Do not use a blank password. Use a strong password.
Use the Server Configuration Collation page to specify non-default collations for the Database Engine
and Analysis Services. For more information, see Collations and Unicode Support.
14. Use the Database Engine Configuration - Server Configuration page to specify the following:
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. For more information, see Database Engine
Configuration - Server Configuration.
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, click Add Current User.
To add or remove accounts from the list of system administrators, click Add or Remove, and then
edit the list of users, groups, or computers that will have administrator privileges for the instance of
SQL Server.
Use the Database Engine Configuration - Data Directories page to specify non-default installation
directories. To install to default directories, click Next.
IMPORTANT
If you specify non-default 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.
IMPORTANT
When installing SQL Server, if you specify the same directory path for INSTANCEDIR and SQLUSERDBDIR, SQL Server
Agent and Full Text Search do not start due to missing permissions.
If you specify non-default 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.
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
Validate a SQL Server Installation
Repair a Failed SQL Server 2016 Installation
View and Read SQL Server Setup Log Files
Upgrade to SQL Server 2016 Using the Installation Wizard (Setup)
Install SQL Server 2016 from the Command Prompt
Install SQL Server from the Command Prompt
7/11/2017 75 min to read Edit Online
Before you run SQL Server Setup, review Planning a SQL Server Installation.
Installing a new instance of SQL Server at the command prompt enables you to specify the features to install
and how they should be configured. You can also specify silent, basic, or full interaction with the Setup user
interface.
NOTE: When installing through the command prompt, SQL Server supports full quiet mode by using the /Q
parameter, or Quiet Simple mode by using the /QS parameter. The /QS switch only shows progress, does
not accept any input, and displays no error messages if encountered. The /QS parameter is only supported
when /Action=install is specified.
Regardless of the installation method, you are required to confirm acceptance of the software license terms as
an individual or on behalf of an entity, unless your use of the software is governed by a separate agreement
such as a Microsoft volume licensing agreement or a third-party agreement with an ISV or OEM.
The license terms are displayed for review and acceptance in the Setup user interface. Unattended installations
(using the /Q or /QS parameters) must include the /IACCEPTSQLSERVERLICENSETERMS parameter. You can
review the license terms separately at Microsoft Software License Terms.
NOTE: Depending on how you received the software (for example, through Microsoft volume licensing),
your use of the software may be subject to additional terms and conditions.
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.
For failover cluster installations, you must be a local administrator with permissions to login as a service,
and to act as part of the operating system on all failover cluster nodes.
NOTE
When installing SQL Server, if you specify the same directory path for INSTANCEDIR and SQLUSERDBDIR, SQL
Server Agent and Full Text Search do not start due to missing permissions.
The relational server values support the additional terminating backslash formats (backslash or two backslash
characters) for the path.
/PID, the value for this parameter should be enclosed in double quotation marks.
SQL Server Setup Control /ENU Use this parameter to install the
English version of SQL Server on a
Optional localized operating system when the
installation media includes language
packs for both English and the
language corresponding to the
operating system.
SQL Server Setup Control /UpdateEnabled Specify whether SQL Server setup
should discover and include product
Optional updates. The valid values are True and
False or 1 and 0. By default, SQL
Server setup will include updates that
are found.
SQL Server Setup Control /UpdateSource Specify the location where SQL Server
setup will obtain product updates. The
Optional 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
Windows Server Update Services.
Optional
SQL SERVER COMPONENT PARAMETER DESCRIPTION
SQL Server Setup Control /ERRORREPORTING Has no effect in SQL Server 2016.
Supported values:
0=disabled
1=enabled
SQL Server Setup Control /HELP, H, ? Displays the usage options for
installation parameters.
Optional
SQL Server Setup Control /INDICATEPROGRESS Specifies that the verbose Setup log file
is piped to the console.
Optional
SQL Server Setup Control /INSTANCENAME Specifies a SQL Server instance name.
SQL Server Setup Control /PID Specifies the product key for the
edition of SQL Server. If this parameter
Optional is not specified, Evaluation is used.
SQL Server Setup Control /QS Specifies that Setup runs and shows
progress through the UI, but does not
Optional accept any input or show any error
messages.
SQL SERVER COMPONENT PARAMETER DESCRIPTION
SQL Server Setup Control /UIMODE Specifies whether to present only the
minimum number of dialog boxes
Optional during setup.
/UIMODE=AutoAdvance is the
default for Express editions and skips
nonessential dialog boxes.
SQL Server Setup Control /SQMREPORTING Has no effect in SQL Server 2016.
Supported values:
0=disabled
1=enabled
SQL Server Setup Control /HIDECONSOLE Specifies that the console window is
hidden or closed.
Optional
SQL Server Agent /AGTSVCACCOUNT Specifies the account for the SQL
Server Agent service.
Required
SQL Server Agent /AGTSVCPASSWORD Specifies the password for SQL Server
Agent service account.
Required
SQL SERVER COMPONENT PARAMETER DESCRIPTION
SQL Server Agent /AGTSVCSTARTUPTYPE Specifies the startup mode for the SQL
Server Agent service.
Optional
Supported values:
Automatic
Disabled
Manual
Automatic
Disabled
Manual
SQL Server Browser /BROWSERSVCSTARTUPTYPE Specifies the startup mode for SQL
Server Browser service. Supported
Optional values:
Automatic
Disabled
Manual
SQL Server Database Engine /ENABLERANU Enables run-as credentials for SQL
Server Express installations.
Optional
SQL Server Database Engine /INSTALLSQLDATADIR Specifies the data directory for SQL
Server data files. Default values:
Optional
For WOW mode on 64-bit:%Program
Files(x86)%\ MicrosoftSQL Server\
SQL Server Database Engine /SAPWD Specifies the password for the SQL
Serversa account.
Required when
/SECURITYMODE=SQL
SQL Server Database Engine /SECURITYMODE Specifies the security mode for SQL
Server.
Optional
If this parameter is not supplied, then
Windows-only authentication mode is
supported.
SQL Server Database Engine /SQLBACKUPDIR Specifies the directory for backup files.
SQL Server Database Engine /SQLCOLLATION Specifies the collation settings for SQL
Server.
Optional
The default value is based on the locale
of your Windows operating system.
For more information, see Collation
Settings in Setup.
SQL Server Database Engine /ADDCURRENTUSERASSQLADMIN Adds the current user to the SQL
Serversysadmin fixed server role. The
Optional /ADDCURRENTUSERASSQLADMIN
parameter can be used when installing
Express editions or when
/Role=ALLFeatures_WithDefaults is
used. For more information, see /ROLE
below.
Use of
/ADDCURRENTUSERASSQLADMIN is
optional, but either
/ADDCURRENTUSERASSQLADMIN or
/SQLSYSADMINACCOUNTS is
required. Default values:
SQL Server Database Engine /SQLSVCACCOUNT Specifies the startup account for the
SQL Server service.
Required
SQL Server Database Engine /SQLSVCSTARTUPTYPE Specifies the startup mode for the SQL
Server service. Supported values:
Optional
Automatic
Disabled
Manual
SQL Server Database Engine /SQLSYSADMINACCOUNTS Use this parameter to provision logins
to be members of the sysadmin role.
Required
For SQL Server editions other than
SQL Server Express,
/SQLSYSADMINACCOUNTS is
required. For editions of SQL Server
Express, use of
/SQLSYSADMINACCOUNTS is
optional, but either
/SQLSYSADMINACCOUNTS or
/ADDCURRENTUSERASSQLADMIN is
required.
SQL Server Database Engine /SQLTEMPDBDIR Specifies the directories for tempdb
data files. When specifying more than
Optional one directory, separate the directories
with a blank space. If multiple
directories are specified the tempdb
data files will be spread across the
directories in a round-robin fashion.
SQL Server Database Engine /SQLTEMPDBLOGDIR Specifies the directory for tempdb log
file.
Optional
Default value: <InstallSQLDataDir>\
<SQLInstanceID>\MSSQL\Data(Syste
m Data Directory)
SQL Server Database Engine /SQLTEMPDBFILECOUNT Specifies the number of tempdb data
files to be added by setup. This value
Optional can be increased up to the number of
cores. Default value:
Min = (4 or 8 MB).
SQL Server Database Engine /SQLTEMPDBFILEGROWTH Specifies the file growth increment of
each tempdb data file in MB. A value
Optional of 0 indicates that automatic growth is
off and no additional space is allowed.
Setup allows the size up to 1024 .
Min = (4 or 8 MB).
SQL Server Database Engine /SQLTEMPDBLOGFILEGROWTH Specifies the file growth increment of
each tempdb data file in MB. A value
Optional of 0 indicates that automatic growth is
off and no additional space is allowed.
Setup allows the size up to 1024.
SQL Server Database Engine /SQLUSERDBDIR Specifies the directory for the data files
for user databases.
Optional
Default value: <InstallSQLDataDir>\
<SQLInstanceID>\MSSQL\Data
SQL Server Database Engine /SQLSVCINSTANTFILEINIT Enables instant file initialization for SQL
Server service account. For security
Optional and performance considerations, see
Database Instant File Initialization.
SQL Server Database Engine /SQLUSERDBLOGDIR Specifies the directory for the log files
for user databases.
Optional
Default value: <InstallSQLDataDir>\
<SQLInstanceID>\MSSQL\Data
SQL Server Full Text /FTSVCACCOUNT Specifies the account for Full-Text filter
launcher service.
Optional
This parameter is ignored in Windows
Server 2008. ServiceSID is used to help
secure the communication between
SQL Server and Full-text Filter
Daemon. If the values are not
provided, the Full-text Filter Launcher
Service is disabled. You have to use
SQL Server Control Manager to
change the service account and enable
full-text functionality.
SQL Server Full Text /FTSVCPASSWORD Specifies the password for the Full-Text
filter launcher service.
Optional
This parameter is ignored in Windows
Server 2008.
SQL Server Network Configuration /NPENABLED Specifies the state of the Named Pipes
protocol for the SQL Server service.
Optional Supported values:
SQL Server Network Configuration /TCPENABLED Specifies the state of the TCP protocol
for the SQL Server service. Supported
Optional values:
DefaultNativeMode
FilesOnlyMode
To install a new, stand-alone instance with the SQL Server Database Engine, Replication, and Full-Text Search
components and enable instant file initialization for SQL Server Database Engine.
SQL Server Setup Control /ENU Use this parameter to install the
English version of SQL Server on a
Optional localized operating system when the
installation media includes language
packs for both English and the
language corresponding to the
operating system.
SQL Server Setup Control /UpdateEnabled Specify whether SQL Server setup
should discover and include product
Optional updates. The valid values are True and
False or 1 and 0. By default, SQL
Server setup will include updates that
are found.
SQL Server Setup Control /UpdateSource Specify the location where SQL Server
setup will obtain product updates. The
Optional 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
Windows Server Update Services.
Optional
SQL SERVER COMPONENT PARAMETER DESCRIPTION
SQL Server Setup Control /HELP, H, ? Displays the usage options for
installation parameters.
Optional
SQL Server Setup Control /HIDECONSOLE Specifies that the console window is
hidden or closed.
Optional
SQL Server Setup Control /INDICATEPROGRESS Specifies that the verbose Setup log file
is piped to the console.
Optional
SQL Server Setup Control /INSTANCEID Specifies an InstanceID for the instance
that is being prepared.
Prior to SQL Server 2012 Service Pack
1 Cumulative Update 2 (January 2013)
Required
SQL Server Setup Control /QS Specifies that Setup runs and shows
progress through the UI, but does not
Optional accept any input or show any error
messages.
Sa mp l e Sy n t a x :
To prepare a new, stand-alone instance with the SQL Server Database Engine, Replication, and Full-Text Search
components, and Reporting Services.
SQL Server Setup Control /ENU Use this parameter to install the
English version of SQL Server on a
Optional localized operating system when the
installation media includes language
packs for both English and the
language corresponding to the
operating system.
Optional
SQL SERVER COMPONENT PARAMETER DESCRIPTION
SQL Server Setup Control /ERRORREPORTING Has no effect in SQL Server 2016.
1=enabled
0=disabled
SQL Server Setup Control /HELP, H, ? Displays the usage options for
installation parameters.
Optional
SQL Server Setup Control /INDICATEPROGRESS Specifies that the verbose Setup log file
is piped to the console.
Optional
SQL Server Setup Control /INSTANCEID Use the Instance ID specified during
the prepare image step.
Prior to SQL Server 2012 Service Pack
1 Cumulative Update 2 (January 2013) Supported Values: InstanceID of a
Required Prepared Instance.
SQL Server Setup Control /INSTANCENAME Specifies a SQL Server instance name
for the instance that is being
Prior to SQL Server 2012 Service Pack completed.
1 Cumulative Update 2 (January 2013)
Required For more information, see Instance
Configuration.
Beginning with SQL Server 2012
Service Pack 1 Cumulative Update 2
Optional
SQL Server Setup Control /PID Specifies the product key for the
edition of SQL Server. If this parameter
Optional is not specified, Evaluation is used.
SQL Server Setup Control /QS Specifies that Setup runs and shows
progress through the UI, but does not
Optional accept any input or show any error
messages.
SQL Server Setup Control /SQMREPORTING Has no effect in SQL Server 2016.
Supported values:
0=disabled
1=enabled
SQL Server Setup Control /HIDECONSOLE Specifies that the console window is
hidden or closed.
Optional
SQL Server Agent /AGTSVCACCOUNT Specifies the account for the SQL
Server Agent service.
Required
SQL Server Agent /AGTSVCPASSWORD Specifies the password for SQL Server
Agent service account.
Required
SQL SERVER COMPONENT PARAMETER DESCRIPTION
SQL Server Agent /AGTSVCSTARTUPTYPE Specifies the startup mode for the SQL
Server Agent service. Supported
Optional values:
Automatic
Disabled
Manual
SQL Server Browser /BROWSERSVCSTARTUPTYPE Specifies the startup mode for SQL
Server Browser service. Supported
Optional values:
Automatic
Disabled
Manual
SQL Server Database Engine /ENABLERANU Enables run-as credentials for SQL
Server Express installations.
Optional
SQL Server Database Engine /INSTALLSQLDATADIR Specifies the data directory for SQL
Server data files. Default values:
Optional
For WOW mode on 64-bit:%Program
Files(x86)%\ MicrosoftSQL Server\
SQL Server Database Engine /SAPWD Specifies the password for the SQL
Serversa account.
Required when
/SECURITYMODE=SQL
SQL Server Database Engine /SECURITYMODE Specifies the security mode for SQL
Server.
Optional
If this parameter is not supplied, then
Windows-only authentication mode is
supported.
SQL Server Database Engine /SQLBACKUPDIR Specifies the directory for backup files.
<InstallSQLDataDir>\
<SQLInstanceID>\MSSQL\Backup
SQL SERVER COMPONENT PARAMETER DESCRIPTION
SQL Server Database Engine /SQLCOLLATION Specifies the collation settings for SQL
Server.
Optional
The default value is based on the locale
of your Windows operating system.
For more information, see Collation
Settings in Setup.
SQL Server Database Engine /SQLSVCACCOUNT Specifies the startup account for the
SQL Server service.
Required
SQL Server Database Engine /SQLSVCSTARTUPTYPE Specifies the startup mode for the SQL
Server service. Supported values:
Optional
Automatic
Disabled
Manual
SQL Server Database Engine /SQLSYSADMINACCOUNTS Use this parameter to provision logins
to be members of the sysadmin role.
Required
SQL Server Database Engine /SQLTEMPDBDIR Specifies the directories for tempdb
data files. When specifying more than
Optional one directory, separate the directories
with a blank space. If multiple
directories are specified the tempdb
data files will be spread across the
directories in a round-robin fashion.
SQL Server Database Engine /SQLTEMPDBLOGDIR Specifies the directory for tempdb log
file.
Optional
Default value: <InstallSQLDataDir>\
<SQLInstanceID>\MSSQL\Data(Syste
m Data Directory)
Min = (4 or 8 MB).
SQL Server Database Engine /SQLTEMPDBFILEGROWTH Specifies the file growth increment of
each tempdb data file in MB. A value
Optional of 0 indicates that automatic growth is
off and no additional space is allowed.
Setup allows the size up to 1024.
Default value: 64
SQL Server Database Engine /SQLTEMPDBLOGFILESIZE Specifies the initial size of the tempdb
log file in MB. Setup allows the size up
Optional to 1024.
Default value:
Min = (4 or 8 MB).
SQL Server Database Engine /SQLTEMPDBFILECOUNT Specifies the number of tempdb data
files to be added by setup. This value
Optional can be increased up to the number of
cores. Default value:
SQL Server Database Engine /SQLUSERDBDIR Specifies the directory for the data files
for user databases.
Optional
Default value: <InstallSQLDataDir>\
<SQLInstanceID>\MSSQL\Data
SQL Server Database Engine /SQLUSERDBLOGDIR Specifies the directory for the log files
for user databases.
Optional
Default value: <InstallSQLDataDir>\
<SQLInstanceID>\MSSQL\Data
SQL Server Full Text /FTSVCACCOUNT Specifies the account for Full-Text filter
launcher service.
Optional
This parameter is ignored in Windows
Server 2008. ServiceSID is used to help
secure the communication between
SQL Server and Full-text Filter
Daemon. If the values are not
provided, the Full-text Filter Launcher
Service is disabled. You have to use
SQL Server Control Manager to
change the service account and enable
full-text functionality.
SQL Server Full Text /FTSVCPASSWORD Specifies the password for the Full-Text
filter launcher service.
Optional
This parameter is ignored in Windows
Server 2008.
SQL Server Network Configuration /NPENABLED Specifies the state of the Named Pipes
protocol for the SQL Server service.
Optional Supported values:
SQL Server Network Configuration /TCPENABLED Specifies the state of the TCP protocol
for the SQL Server service. Supported
Optional values:
To complete a prepared, stand-alone instance that includes SQL Server Database Engine, Replication, and Full-
Text Search components.
Upgrade Parameters
Use the parameters in the following table to develop command-line scripts for upgrade.
EditionUpgrade
SQL Server Setup Control /ENU Use this parameter to install the
English version of SQL Server on a
Optional localized operating system when the
installation media includes language
packs for both English and the
language corresponding to the
operating system.
SQL Server Setup Control /UpdateEnabled Specify whether SQL Server setup
should discover and include product
Optional updates. The valid values are True and
False or 1 and 0. By default, SQL
Server setup will include updates that
are found.
SQL SERVER COMPONENT PARAMETER DESCRIPTION
SQL Server Setup Control /UpdateSource Specify the location where SQL Server
setup will obtain product updates. The
Optional 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
Windows Server Update Services.
Optional
SQL Server Setup Control /ERRORREPORTING Has no effect in SQL Server 2016.
1=enabled
0=disabled
SQL Server Setup Control /HELP, H, ? Displays the usage options for the
parameters.
Optional
SQL Server Setup Control /INDICATEPROGRESS Specifies that the verbose Setup log file
will be piped to the console.
Optional
SQL Server Setup Control /INSTANCENAME Specifies a SQL Server instance name.
SQL Server Setup Control /PID Specifies the product key for the
edition of SQL Server. If this parameter
Optional is not specified, Evaluation is used.
SQL Server Setup Control /UIMODE Specifies whether to present only the
minimum number of dialog boxes
Optional during setup.
/UIMode can only be used with the
/ACTION=INSTALL and UPGRADE
parameters. Supported values:
/UIMODE=AutoAdvance is the
default for Express editions and skips
nonessential dialog boxes.
SQL Server Setup Control /SQMREPORTING Has no effect in SQL Server 2016.
Supported values:
1=enabled
0=disabled
SQL Server Setup Control /HIDECONSOLE Specifies the console window would be
hidden or closed.
Optional
SQL Server Browser Service /BROWSERSVCSTARTUPTYPE Specifies the startup mode for SQL
Server Browser service. Supported
Optional values:
Automatic
Disabled
Manual
SQL SERVER COMPONENT PARAMETER DESCRIPTION
RESET
IMPORT
To upgrade an existing instance or failover cluster node from a previous SQL Server version,
SQL Server Setup Control /ENU Use this parameter to install the
English version of SQL Server on a
Optional localized operating system when the
installation media includes language
packs for both English and the
language corresponding to the
operating system.
Required
SQL Server Setup Control /INSTANCENAME Specifies a SQL Server instance name.
SQL Server Setup Control /HIDECONSOLE Specifies that the console window is
hidden or closed.
Optional
Sa mp l e Sy n t a x :
Repair an instance and shared components.
SQL Server Setup Control /INSTANCENAME Specifies a SQL Server instance name.
SQL Server Database Engine /SAPWD Specifies the password for SQL SA
account.
Required when
/SECURITYMODE=SQL was
specified during Installation of the
Instance.
SQL Server Database Engine /SQLSYSADMINACCOUNTS Use this parameter to provision logins
to be members of the sysadmin role.
Required
SQL Server Database Engine /SQLTEMPDBDIR Specifies the directories for tempdb
data files. When specifying more than
Optional one directory, separate the directories
with a blank space. If multiple
directories are specified the tempdb
data files will be spread across the
directories in a round-robin fashion.
SQL Server Database Engine /SQLTEMPDBLOGDIR Specifies the directory for tempdb log
file.
Optional
Default value: <InstallSQLDataDir>\
<SQLInstanceID>\MSSQL\Data(Syste
m Data Directory)
SQL Server Database Engine /SQLTEMPDBFILECOUNT Specifies the number of tempdb data
files to be added by setup. This value
Optional can be increased up to the number of
cores. Default value:
Min = (4 or 8 MB).
SQL Server Database Engine /SQLTEMPDBFILEGROWTH Specifies the file growth increment of
each tempdb data file in MB. A value
Optional of 0 indicates that automatic growth is
off and no additional space is allowed.
Setup allows the size up to 1024.
Default value: 64
SQL Server Database Engine /SQLTEMPDBLOGFILESIZE Specifies the initial size of the tempdb
log file in MB. Setup allows the size up
Optional to 1024. Default value:
Min = (4 or 8 MB).
Uninstall Parameters
Use the parameters in the following table to develop command-line scripts for uninstallation.
SQL Server Setup Control /ACTION Required to indicate the uninstall work
flow.
Required
Supported values: Uninstall
Optional
Required
SQL Server Setup Control /HELP, H, ? Displays the usage options for the
parameters.
Optional
SQL SERVER COMPONENT PARAMETER DESCRIPTION
SQL Server Setup Control /INDICATEPROGRESS Specifies that the verbose Setup log file
will be piped to the console.
Optional
SQL Server Setup Control /INSTANCENAME Specifies a SQL Server instance name.
SQL Server Setup Control /HIDECONSOLE Specifies that the console window is
hidden or closed.
Optional
Sa mp l e Sy n t a x :
To remove a named instance, specify the name of the instance instead of "MSSQLSERVER" in the example that
was mentioned earlier in this topic.
IMPORTANT
All failover cluster installation commands require an underlying Windows cluster. All the nodes that will be part of
a SQL Server failover cluster must be part of the same Windows cluster.
Test and modify the following failover cluster installation scripts to meet the needs of your organization.
Integrated Install Failover Cluster Parameters
Use the parameters in the following table to develop command-line scripts for failover cluster installation.
For more information about Integrated Installation, see Always On Failover Cluster Instances (SQL Server).
NOTE: To add more nodes after the installation, use Add Node action.
SQL Server Setup Control /ACTION Required to indicate the failover cluster
installation work flow.
Required
Supported value:
InstallFailoverCluster
SQL Server Setup Control /ENU Use this parameter to install the
English version of SQL Server on a
Optional localized operating system when the
installation media includes language
packs for both English and the
language corresponding to the
operating system.
SQL Server Setup Control /FAILOVERCLUSTERGROUP Specifies the name of the resource
group to be used for the SQL Server
Optional failover cluster. It can be the name of
an existing cluster group or the name
of a new resource group.
Default value:
SQL Server Setup Control /UpdateEnabled Specify whether SQL Server setup
should discover and include product
Optional updates. The valid values are True and
False or 1 and 0. By default, SQL
Server setup will include updates that
are found.
SQL Server Setup Control /UpdateSource Specify the location where SQL Server
setup will obtain product updates. The
Optional 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
Windows Server Update Services.
Optional
SQL Server Setup Control /ERRORREPORTING Has no effect in SQL Server 2016.
1=enabled
0=disabled
Required
SQL Server Setup Control /HELP, H, ? Displays the usage options for the
parameters.
Optional
SQL Server Setup Control /INDICATEPROGRESS Specifies that the verbose Setup log file
will be piped to the console.
Optional
SQL SERVER COMPONENT PARAMETER DETAILS
SQL Server Setup Control /INSTANCENAME Specifies a SQL Server instance name.
SQL Server Setup Control /PID Specifies the product key for the
edition of SQL Server. If this parameter
Optional is not specified, Evaluation is used.
SQL Server Setup Control /QS Specifies that Setup runs and shows
progress through the UI, but does not
Optional accept any input or show any error
messages.
SQL SERVER COMPONENT PARAMETER DETAILS
SQL Server Setup Control /SQMREPORTING Has no effect in SQL Server 2016.
Supported values:
1=enabled
0=disabled
SQL Server Setup Control /HIDECONSOLE Specifies the console window would be
hidden or closed.
Optional
SQL Server Setup Control /FAILOVERCLUSTERDISKS Specifies the list of shared disks to be
included in the SQL Server failover
Optional cluster resource group.
FAILOVERCLUSTERIPADDRESSES=DEF
AULT
FAILOVERCLUSTERIPADDRESSES=IPv4
;DHCP;ClusterNetwork1
FAILOVERCLUSTERIPADDRESSES=IPv4
;172.16.0.0;ClusterNetwork1;172.31.25
5.255
FAILOVERCLUSTERIPADDRESSES=IPv6
;DHCP;ClusterNetwork1
FAILOVERCLUSTERIPADDRESSES=IPv6
;2001:db8:23:1002:20f:1fff:feff:b3a3;Cl
usterNetwork1
SQL Server Setup Control /FAILOVERCLUSTERNETWORKNAME Specifies the network name for the
new SQL Server failover cluster. This
Required name is used to identify the new SQL
Server failover cluster instance on the
network.
SQL SERVER COMPONENT PARAMETER DETAILS
SQL Server Agent /AGTSVCACCOUNT Specifies the account for the SQL
Server Agent service.
Required
SQL Server Agent /AGTSVCPASSWORD Specifies the password for SQL Server
Agent service account.
Required
SQL Server Database Engine /INSTALLSQLDATADIR Specifies the data directory for SQL
Server data files.
Required
The data directory must to specified
and on a shared cluster disk.
SQL Server Database Engine /SAPWD Specifies the password for the SQL
Serversa account.
Required when
/SECURITYMODE=SQL
SQL Server Database Engine /SECURITYMODE Specifies the security mode for SQL
Server.
Optional
If this parameter is not supplied, then
Windows-only authentication mode is
supported.
SQL Server Database Engine /SQLBACKUPDIR Specifies the directory for backup files.
SQL Server Database Engine /SQLCOLLATION Specifies the collation settings for SQL
Server.
Optional
The default value is based on the locale
of your Windows operating system.
For more information, see Collation
Settings in Setup.
SQL Server Database Engine /SQLSVCACCOUNT Specifies the startup account for the
SQL Server service.
Required
SQL Server Database Engine /SQLSYSADMINACCOUNTS Use this parameter to provision logins
to be members of the sysadmin role.
Required
SQL Server Database Engine /SQLUSERDBDIR Specifies the directory for the data files
for user databases.
Optional
Default value: <InstallSQLDataDir>\
<SQLInstanceID>\MSSQL\Data
SQL Server Database Engine /SQLTEMPDBDIR Specifies the directories for tempdb
data files. When specifying more than
Optional one directory, separate the directories
with a blank space. If multiple
directories are specified the tempdb
data files will be spread across the
directories in a round-robin fashion.
SQL Server Database Engine /SQLTEMPDBLOGDIR Specifies the directory for tempdb log
file.
Optional
Default value: <InstallSQLDataDir>\
<SQLInstanceID>\MSSQL\Data(Syste
m Data Directory)
SQL Server Database Engine /SQLTEMPDBFILECOUNT Specifies the number of tempdb data
files to be added by setup. This value
Optional can be increased up to the number of
cores. Default value:
Default = 8 MB.
Min = 8 MB.
SQL Server Database Engine /SQLTEMPDBFILEGROWTH Specifies the file growth increment of
each tempdb data file in MB. A value
Optional of 0 indicates that automatic growth is
off and no additional space is allowed.
Setup allows the size up to 1024.
Default value: 64
SQL Server Database Engine /SQLTEMPDBLOGFILESIZE Specifies the initial size of the tempdb
log file in MB. Setup allows the size up
Optional to 1024.
Default value:
Min = (4 or 8 MB).
SQL Server Database Engine /SQLUSERDBLOGDIR Specifies the directory for the log files
for user databases.
Optional
Default value: <InstallSQLDataDir>\
<SQLInstanceID>\MSSQL\Data
Requiredwhen FILESTREAMLEVEL is
greater than 1.
SQL SERVER COMPONENT PARAMETER DETAILS
SQL Server Full Text /FTSVCACCOUNT Specifies the account for Full-Text filter
launcher service.
Optional
This parameter is ignored in Windows
Server 2008. ServiceSID will be used to
help secure the communication
between SQL Server and Full-text Filter
Daemon.
SQL Server Full Text /FTSVCPASSWORD Specifies the password for the Full-Text
filter launcher service.
Optional
This parameter is ignored in Windows
Server 2008.
The Database Engine and Analysis Services are the only components that are cluster-aware. Other features are
not cluster-aware and do not have high availability through failover.
Sa mp l e Sy n t a x :
To install a single-node SQL Server failover cluster instance with the Database Engine and Analysis Services,
default instance.
SQL Server Setup Control /ACTION Required to indicate the failover cluster
prepare work flow.
Required
Supported value:
PrepareFailoverCluster
SQL Server Setup Control /ENU Use this parameter to install the
English version of SQL Server on a
Optional localized operating system when the
installation media includes language
packs for both English and the
language corresponding to the
operating system.
SQL Server Setup Control /UpdateEnabled Specify whether SQL Server setup
should discover and include product
Optional updates. The valid values are True and
False or 1 and 0. By default, SQL
Server setup will include updates that
are found.
SQL Server Setup Control /UpdateSource Specify the location where SQL Server
setup will obtain product updates. The
Optional 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
Windows Server Update Services.
SQL SERVER COMPONENT PARAMETER DESCRIPTION
Optional
SQL Server Setup Control /ERRORREPORTING Has no effect in SQL Server 2016.
0=disabled
1=enabled
Required
SQL Server Setup Control /HELP, H, ? Displays the usage options for the
parameters.
Optional
SQL Server Setup Control /INDICATEPROGRESS Specifies that the verbose Setup log file
will be piped to the console.
Optional
SQL Server Setup Control /INSTANCENAME Specifies a SQL Server instance name.
SQL Server Setup Control /PID Specifies the product key for the
edition of SQL Server. If this parameter
Optional is not specified,
Evaluation is used.
SQL Server Setup Control /QS Specifies that Setup runs and shows
progress through the UI, but does not
Optional accept any input or show any error
messages.
SQL SERVER COMPONENT PARAMETER DESCRIPTION
SQL Server Setup Control /SQMREPORTING Has no effect in SQL Server 2016.
Supported values:
0=disabled
1=enabled
SQL Server Setup Control /HIDECONSOLE Specifies that the console window is
hidden or closed.
Optional
SQL Server Agent /AGTSVCACCOUNT Specifies the account for the SQL
Server Agent service.
Required
SQL Server Agent /AGTSVCPASSWORD Specifies the password for SQL Server
Agent service account.
Required
SQL Server Database Engine /SQLSVCACCOUNT Specifies the startup account for the
SQL Server service.
Required
SQL Server Full Text /FTSVCACCOUNT Specifies the account for Full-Text filter
launcher service.
Optional
This parameter is ignored in Windows
Server 2008. ServiceSID will be used to
help secure the communication
between SQL Server and Full-text Filter
Daemon.
SQL Server Full Text /FTSVCPASSWORD Specifies the password for the Full-Text
filter launcher service.
Optional
This parameter is ignored in Windows
Server 2008.
To perform the "Preparation" step of a failover cluster advanced installation scenario for the Database Engine
and Analysis Services.
Run the following command at the command prompt to prepare a default instance:
Run the following command at the command prompt to prepare a named instance:
SQL Server Setup Control /ACTION Required to indicate the failover cluster
complete work flow.
Required
Supported value:
CompleteFailoverCluster
SQL SERVER COMPONENT PARAMETER DESCRIPTION
SQL Server Setup Control /ENU Use this parameter to install the
English version of SQL Server on a
Optional localized operating system when the
installation media includes language
packs for both English and the
language corresponding to the
operating system.
SQL Server Setup Control /FAILOVERCLUSTERGROUP Specifies the name of the resource
group to be used for the SQL Server
Optional failover cluster. It can be the name of
an existing cluster group or the name
of a new resource group.
Default value:
Optional
SQL Server Setup Control /ERRORREPORTING Has no effect in SQL Server 2016.
1=enabled
0=disabled
SQL Server Setup Control /HELP, H, ? Displays the usage options for the
parameters.
Optional
SQL Server Setup Control /INDICATEPROGRESS Specifies that the verbose Setup log file
will be piped to the console.
Optional
SQL Server Setup Control /INSTANCENAME Specifies a SQL Server instance name.
SQL Server Setup Control /PID Specifies the product key for the
edition of SQL Server. If this parameter
Optional is not specified, Evaluation is used.
SQL SERVER COMPONENT PARAMETER DESCRIPTION
SQL Server Setup Control /QS Specifies that Setup runs and shows
progress through the UI, but does not
Optional accept any input or show any error
messages.
SQL Server Setup Control /SQMREPORTING Has no effect in SQL Server 2016.
Supported values:
1=enabled
0=disabled
SQL Server Setup Control /HIDECONSOLE Specifies that the console window is
hidden or closed.
Optional
SQL Server Setup Control /FAILOVERCLUSTERDISKS Specifies the list of shared disks to be
included in the SQL Server failover
Optional cluster resource group.
Default value:
FAILOVERCLUSTERIPADDRESSES=DEF
AULT
FAILOVERCLUSTERIPADDRESSES=IPv4
;DHCP;ClusterNetwork1
FAILOVERCLUSTERIPADDRESSES=IPv4
;172.16.0.0;ClusterNetwork1;172.31.25
5.255
FAILOVERCLUSTERIPADDRESSES=IPv6
;DHCP;ClusterNetwork1
FAILOVERCLUSTERIPADDRESSES=IPv6
;2001:db8:23:1002:20f:1fff:feff:b3a3;Cl
usterNetwork1
SQL Server Setup Control /FAILOVERCLUSTERNETWORKNAME Specifies the network name for the
new SQL Server failover cluster. This
Required name is used to identify the new SQL
Server failover cluster instance on the
network.
SQL Server Setup Control /CONFIRMIPDEPENDENCYCHANGE Indicates the consent to set the IP
address resource dependency to OR
for multi-subnet failover clusters. For
more information, see Create a New
SQL Server Failover Cluster (Setup).
Supported Values:
0 = False (Default)
1 = True
SQL Server Database Engine /INSTALLSQLDATADIR Specifies the data directory for SQL
Server data files.
Required
The data directory must to specified
and on a shared cluster disk.
SQL Server Database Engine /SAPWD Specifies the password for the SQL
Serversa account.
Required when
/SECURITYMODE=SQL
SQL Server Database Engine /SECURITYMODE Specifies the security mode for SQL
Server.
Optional
If this parameter is not supplied, then
Windows-only authentication mode is
supported
SQL Server Database Engine /SQLBACKUPDIR Specifies the directory for backup files.
SQL Server Database Engine /SQLCOLLATION Specifies the collation settings for SQL
Server.
Optional
The default value is based on the locale
of your Windows operating system.
For more information, see Collation
Settings in Setup.
SQL Server Database Engine /SQLSYSADMINACCOUNTS Use this parameter to provision logins
to be members of the sysadmin role.
Required
SQL Server Database Engine /SQLUSERDBDIR Specifies the directory for the data files
for user databases.
Optional
Default value: <InstallSQLDataDir>\
<SQLInstanceID>\MSSQL\Data
SQL Server Database Engine /SQLUSERDBLOGDIR Specifies the directory for the log files
for user databases.
Optional
Default value: <InstallSQLDataDir>\
<SQLInstanceID>\MSSQL\Data
SQL Server Database Engine /SQLTEMPDBDIR Specifies the directories for tempdb
data files. When specifying more than
Optional one directory, separate the directories
with a blank space. If multiple
directories are specified the tempdb
data files will be spread across the
directories in a round-robin fashion.
SQL Server Database Engine /SQLTEMPDBLOGDIR Specifies the directory for tempdb log
file.
Optional
Default value: <InstallSQLDataDir>\
<SQLInstanceID>\MSSQL\Data(Syste
m Data Directory)
SQL Server Database Engine /SQLTEMPDBFILECOUNT Specifies the number of tempdb data
files to be added by setup. This value
Optional can be increased up to the number of
cores. Default value:
Default = 8 MB.
Min = 8 MB.
SQL Server Database Engine /SQLTEMPDBFILEGROWTH Specifies the file growth increment of
each tempdb data file in MB. A value
Optional of 0 indicates that automatic growth is
off and no additional space is allowed.
Setup allows the size up to 1024.
Default value: 64
SQL Server Database Engine /SQLTEMPDBLOGFILESIZE Specifies the initial size of the tempdb
log file in MB. Setup allows the size up
Optional to 1024.
Default value:
Min = (4 or 8 MB).
To perform the "Completion" step of a failover cluster advanced installation scenario for the Database Engine
and Analysis Services. Run the following command on the computer that will be the active node in the failover
cluster to make it usable. You must run the "CompleteFailoverCluster" action on the node that owns the shared
disk in the Analysis Services failover cluster.
Run the following command at the command prompt to complete failover cluster installation for a default
instance:
setup.exe /q /ACTION=CompleteFailoverCluster /InstanceName=MSSQLSERVER /INDICATEPROGRESS
/ASSYSADMINACCOUNTS="<DomainName\Username>" /ASDATADIR=<Drive>:\OLAP\Data /ASLOGDIR=<Drive>:\OLAP\Log
/ASBACKUPDIR=<Drive>:\OLAP\Backup /ASCONFIGDIR=<Drive>:\OLAP\Config /ASTEMPDIR=<Drive>:\OLAP\Temp
/FAILOVERCLUSTERDISKS="<Cluster Disk Resource Name - for example, 'Disk S:'>:" /FAILOVERCLUSTERNETWORKNAME="
<Insert FOI Network Name>" /FAILOVERCLUSTERIPADDRESSES="IPv4;xx.xxx.xx.xx;Cluster Network;xxx.xxx.xxx.x"
/FAILOVERCLUSTERGROUP="MSSQLSERVER" /INSTALLSQLDATADIR="<Drive>:\<Path>\MSSQLSERVER"
/SQLCOLLATION="SQL_Latin1_General_CP1_CS_AS" /SQLSYSADMINACCOUNTS="<DomainName\UserName>"
Run the following command at the command prompt to complete failover cluster installation for a named
instance:
SQL Server Setup Control /ENU Use this parameter to install the
English version of SQL Server on a
Optional localized operating system when the
installation media includes language
packs for both English and the
language corresponding to the
operating system.
SQL Server Setup Control /UpdateEnabled Specify whether SQL Server setup
should discover and include product
Optional updates. The valid values are True and
False or 1 and 0. By default, SQL
Server setup will include updates that
are found.
SQL SERVER COMPONENT PARAMETER DESCRIPTION
SQL Server Setup Control /UpdateSource Specify the location where SQL Server
setup will obtain product updates. The
Optional 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
Windows Server Update Services.
Optional
SQL Server Setup Control /ERRORREPORTING Has no effect in SQL Server 2016.
0=disabled
1=enabled
SQL Server Setup Control /HELP, H, ? Displays the usage options for the
parameters.
Optional
SQL Server Setup Control /INDICATEPROGRESS Specifies that the verbose Setup log file
will be piped to the console.
Optional
SQL Server Setup Control /INSTANCENAME Specifies a SQL Server instance name.
SQL Server Setup Control /PID Specifies the product key for the
edition of SQL Server. If this parameter
Optional is not specified, Evaluation is used.
SQL Server Setup Control /SQMREPORTING Has no effect in SQL Server 2016. In
older versions this specifies feature
Optional usage reporting for SQL Server.
Supported values:
0=disabled
1=enabled
SQL Server Setup Control /HIDECONSOLE Specifies that the console window is
hidden or closed.
Optional
SQL Server Setup Control /FAILOVERCLUSTERROLLOWNERSHIP Specifies the failover behavior during
upgrade.
SQL Server Browser Service /BROWSERSVCSTARTUPTYPE Specifies the startup mode for SQL
Server Browser service. Supported
Optional values:
Automatic
Disabled
Manual
RESET
IMPORT
SQL Server Setup Control /ENU Use this parameter to install the
English version of SQL Server on a
Optional localized operating system when the
installation media includes language
packs for both English and the
language corresponding to the
operating system.
SQL Server Setup Control /UpdateEnabled Specify whether SQL Server setup
should discover and include product
Optional updates. The valid values are True and
False or 1 and 0. By default, SQL
Server setup will include updates that
are found.
SQL SERVER COMPONENT PARAMETER DESCRIPTION
SQL Server Setup Control /UpdateSource Specify the location where SQL Server
setup will obtain product updates. The
Optional 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
Windows Server Update Services.
Optional
SQL Server Setup Control /HELP, H, ? Displays the usage options for the
parameters.
Optional
SQL Server Setup Control /INDICATEPROGRESS Specifies that the verbose Setup log file
will be piped to the console.
Optional
SQL Server Setup Control /INSTANCENAME Specifies a SQL Server instance name.
SQL Server Setup Control /PID Specifies the product key for the
edition of SQL Server. If this parameter
Optional is not specified, Evaluation is used.
SQL Server Setup Control /QS Specifies that Setup runs and shows
progress through the UI, but does not
Optional accept any input or show any error
messages.
SQL Server Setup Control /HIDECONSOLE Specifies that the console window is
hidden or closed.
Optional
FAILOVERCLUSTERIPADDRESSES=DEF
AULT
FAILOVERCLUSTERIPADDRESSES=IPv4
;DHCP;ClusterNetwork1
FAILOVERCLUSTERIPADDRESSES=IPv4
;172.16.0.0;ClusterNetwork1;172.31.25
5.255
FAILOVERCLUSTERIPADDRESSES=IPv6
;DHCP;ClusterNetwork1
FAILOVERCLUSTERIPADDRESSES=IPv6
;2001:db8:23:1002:20f:1fff:feff:b3a3;Cl
usterNetwork1
SQL Server Setup Control /CONFIRMIPDEPENDENCYCHANGE Indicates the consent to set the IP
address resource dependency to OR
Required for multi-subnet failover clusters. For
more information, see Add or Remove
Nodes in a SQL Server Failover Cluster
(Setup). Supported values:
0 = False (Default)
1 = True
SQL Server Agent /AGTSVCACCOUNT Specifies the account for the SQL
Server Agent service.
Required
SQL SERVER COMPONENT PARAMETER DESCRIPTION
SQL Server Agent /AGTSVCPASSWORD Specifies the password for SQL Server
Agent service account.
Required
SQL Server Database Engine /SQLSVCACCOUNT Specifies the startup account for the
SQL Server service.
Required
A d d i t i o n a l N o t e s:
The Database Engine and Analysis Services are the only components that are cluster-aware. Other features are
not cluster-aware and do not have high availability through failover.
Sa mp l e Sy n t a x :
To add a node to an existing failover cluster instance with the Database Engine and Analysis Services.
Optional
SQL Server Setup Control /HELP, H, ? Displays the usage options for the
parameters.
Optional
SQL Server Setup Control /INDICATEPROGRESS Specifies that the verbose Setup log file
will be piped to the console.
Optional
SQL Server Setup Control /INSTANCENAME Specifies a SQL Server instance name.
SQL Server Setup Control /QS Specifies that Setup runs and shows
progress through the UI, but does not
Optional accept any input or show any error
messages.
SQL Server Setup Control /HIDECONSOLE Specifies that the console window is
hidden or closed.
Optional
SQL Server Setup Control /CONFIRMIPDEPENDENCYCHANGE Indicates the consent to set the IP
address resource dependency from OR
Required to AND for multi-subnet failover
clusters. For more information, see
Add or Remove Nodes in a SQL Server
Failover Cluster (Setup). Supported
values:
0 = False (Default)
1 = True
Sa mp l e Sy n t a x :
To remove a node from an existing failover cluster instance with the Database Engine and Analysis Services.
For more information about service account configuration, see Configure Windows Service Accounts and
Permissions.
Feature Parameters
To install specific features, use the /FEATURES parameter and specify the parent feature or feature values in the
following table. For a list of features that are supported by the editions of SQL Server, see Editions and
Supported Features for SQL Server 2016.
*SQL Server Management Tools (SSMS) is now in a stand-alone installer that is separate from the SQL Server
installer. For details, see Install SQL Server Management Studio from the command line.
**LocalDB is an option when installing any SKU of SQL Server 2017 Express. For more information, see SQL
Server 2016 Express LocalDB.
Feature parameter examples:
PARAMETER AND VALUES DESCRIPTION
/FEATURES=SQL, Tools Installs the complete Database Engine and all tools.
PARAMETER AND VALUES DESCRIPTION
Role Parameters
The setup role or /Role parameter is used to install a preconfigured selection of features. The SSAS roles install
an SSAS instance in either an existing SharePoint farm, or a new un-configured farm. Two setup roles are
provided to support each scenario. You can only choose one setup role to install at a time. If you choose a setup
role, Setup installs the features and components that belong to the role. You cannot vary the features and
components that are designated for that role. For more information about how to use the feature role
parameter, see Install Power Pivot from the Command Prompt.
The AllFeatures_WithDefaults role is the default behavior for editions of SQL Server Express and reduces the
number of dialog boxes presented to the user. It can be specified from the command line when installing a SQL
Server edition that is not SQL Server Express.
SPI_AS_NewFarm Installs Analysis Services and Database Analysis Services calculation engine,
Engine as a Power Pivot named preconfigured for in-memory data
instance on a new, un-configured storage and processing.
Office SharePoint Server 2010 farm or
standalone server. SQL Server Setup Power Pivot solution packages
will configure the farm during feature
role installation. SQL Server Books Online
Database Engine
Configuration Tools
AllFeatures_WithDefaults Installs all features that are available For editions of SQL Server Express,
with the current edition. installs only those features available in
the edition. For other editions, installs
Adds the current user to the SQL all SQL Server features.
Server sysadmin fixed server role.
The AllFeatures_WithDefaults
On Windows Server 2008 or higher parameter can be combined with other
and when the operating system is not parameters which override the
a domain controller, the Database AllFeatures_WithDefaults parameter
Engine, and Reporting Services are settings. For example, using the
defaulted to use the AllFeatures_WithDefaults parameter
NTAUTHORITY\NETWORK SERVICE and the /Features=RS parameter
account, and Integration Services is overrides the command to install all
defaulted to use the features and only installs Reporting
NTAUTHORITY\NETWORK SERVICE Services, but honors the
account. AllFeatures_WithDefaults parameter
to use the default service account for
This role is enabled by default in Reporting Services.
editions of SQL Server Express. For all
other editions, this role is not enabled When using the
but can be specified through the UI or AllFeatures_WithDefaults parameter
with command line parameters. along with the
/ADDCURRENTUSERASSQLADMIN=
FALSE the provisioning dialog is not
auto populated with the current user.
Add /AGTSVCACCOUNT and
/AGTSVCPASSWORD to specify a
service account and password for the
SQL Server Agent.
NOTE: If INSTANCEID is not specified on the command line, then by default Setup substitute
<INSTANCEID> with the <INSTANCENAME>.
See Also
Install SQL Server 2016 from the Installation Wizard
SQL Server Failover Cluster Installation
[Install SQL Server 2016 Business Intelligence Features]
Install SQL Server 2016 Using a Configuration File
3/29/2017 5 min to read Edit Online
SQL Server Setup provides the ability to generate a configuration file based upon the system default and run-
time inputs. You can use the configuration file to deploy SQL Server throughout the enterprise with the same
configuration. You can also standardize manual installations throughout the enterprise, by creating a batch file
that launches Setup.exe.
Setup supports the use of the configuration file only through the command prompt. The processing order of
the parameters while using the configuration file is outlined below:
The configuration file overwrites the defaults in a package
Command-line values overwrite the values in the configuration file
The configuration file can be used to track the parameters and values for each installation. This makes
the configuration file useful for verifying and auditing the installations.
NOTE
SQL Server Express Edition setup does not create a configuration file automatically. The following command will
start setup and create a configuration file.
SETUP.exe /UIMODE=Normal /ACTION=INSTALL
2. Follow the wizard through to the Ready to Install page. The path to the configuration file is specified in
the Ready to Install page in the configuration file path section. For more information about how to
install SQL Server, see Install SQL Server 2016 from the Installation Wizard (Setup).
3. Cancel the setup without actually completing the installation, to generate the INI file.
NOTE
The setup infrastructure writes out all the appropriate parameters for the actions that were run, with the
exception of sensitive information such as passwords. The /IAcceptSQLServerLicenseTerms parameter is also not
written out to the configuration file and requires either a modification of the configuration file or a value to be
supplied at the command prompt. For more information, see Install SQL Server 2016 from the Command
Prompt. In addition, a value is included for Boolean parameters where a value is usually not supplied through the
command prompt.
NOTE
If you need to make changes to the configuration file, we recommend that you make a copy and work with the copy.
Sample Syntax
Following are some examples on how to use the configuration file:
To specify the configuration file at the command prompt:
Setup.exe /ConfigurationFile=MyConfigurationFile.INI
See Also
Install SQL Server 2016 from the Command Prompt
SQL Server Failover Cluster Installation
Upgrade a SQL Server Failover Cluster Instance
Install SQL Server Using SysPrep
3/29/2017 17 min to read Edit Online
SQL Server SysPrep related setup actions can be accessed through the Installation Center. The Advanced Page of
the Installation Center has two options - Image preparation of a stand-alone instance of SQL Server and
Image completion of a prepared stand-alone instance of SQL Server. The Prepare and Complete sections
describe the installation process in detail. For more information, see Considerations for Installing SQL Server
Using SysPrep.
You can also prepare and complete an instance of SQL Server using the command prompt or a configuration file.
For more information, see:
Install SQL Server 2016 from the Command Prompt
Install SQL Server 2016 Using a Configuration File
Prerequisites
Before you install SQL Server, review the topics in Planning a SQL Server Installation.
For more information about SQL Server editions and the hardware and software requirements, see Hardware and
Software Requirements for Installing SQL Server 2016.
IMPORTANT
The following is not supported by SQL Server SysPrep:
WOW 64 installations: a feature of 64-bit edition of Windows that enables 32-bit applications to run natively in 32-bit
mode.
Prepare Image
Prepare a stand-alone instance of SQL Server.
1. 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.
2. The Installation Wizard runs the SQL Server Installation Center. To prepare an instance of SQL Server, click
Image preparation of a stand-alone instance of SQL Server on the Advanced page.
3. The System Configuration Checker runs a discovery operation on your computer. To continue, click OK. You
can view the details on the screen by clicking Show Details, or as an HTML report by clicking View
detailed report.
4. On the Product Updates page, the latest available SQL Server product updates are displayed. If you don't
want to include the updates, clear the Include SQL Server product updates check box. If no product
updates are discovered, SQL Server Setup does not display this page and auto advances to the Install
Setup Files page.
5. On the Install Setup files page, Setup provides the progress of downloading, extracting, and installing the
Setup files. If an update for SQL Server Setup is found, and is specified to be included, that update will also
be installed.
6. The System Configuration Checker verifies the system state of your computer before Setup continues. You
can view the details on the screen by clicking Show Details, or as an HTML report by clicking View
detailed report.
7. On the Prepare Image Type page, select Prepare a new instance of SQL Server.
The Prepare Image Type page is displayed only when you have an existing un-configured prepared
instance of SQL Server on the machine. You can choose to prepare a new instance of SQL Server or add sys
prep supported features to an existing prepared instance of SQL Server on the machine. For more
information on how to add features to a prepared instance of SQL Server see Add Features to a prepared
instance.
8. On the License Terms page, read the license agreement, and then select the check box to accept the license
terms and conditions. To help improve SQL Server, you can also enable the feature usage option and send
reports to Microsoft.
9. On the Feature Selection page, select the components for your installation:
Full-Text Features
Analysis Services
Redistributable Features
Shared Features
A description for each component group appears in the right pane when you highlight the feature name.
You can select any combination of check boxes. For more information, see Editions and Components of SQL
Server 2016 and Features Supported by the Editions of SQL Server 2016.
The prerequisites for the selected features are displayed on the right-hand pane. SQL Server Setup will
install the prerequisite that are not already installed during the installation step described later in this
procedure.
10. On the Prepare Image Rules page, the System Configuration Checker verifies the system state of your
computer before Setup continues. You can view the details on the screen by clicking Show Details, or as an
HTML report by clicking View detailed report.
11. On the Instance Configuration page, specify the Instance ID for the Instance. Click Next to continue.
Instance ID The Instance ID is used to identify installation directories and registry keys for your instance
of SQL Server. This is the case for default instances and named instances. If the prepared instance is
completed as a default Instance during the Complete step, the instance name is overwritten as
MSSQLSERVER. The Instance ID remains the same as specified.
Instance root directory By default, the instance root directory is C:\Program Files\Microsoft SQL
Server\130\. To specify a non-default root directory, use the field provided, or click Browse to locate an
installation folder. The directory specified in the prepare step will be used during configuration in the
Complete step.
All SQL Server service packs and upgrades will apply to every component of an instance of SQL Server.
Installed Instances The grid shows instances of SQL Server that are on the computer where Setup is
running.
12. The Disk Space Requirements page calculates the required disk space for the features that you specify.
Then it compares the required space to the available disk space.
13. The System Configuration Checker will run prepare image rules to validate your computer configuration
with the SQL Server features that you have specified. You can view the details on the screen by clicking
Show Details, or as an HTML report by clicking View detailed report.
14. The Ready to Prepare Image page shows a tree view of installation options that were specified during
Setup. On this page, Setup indicates whether the Product Update feature is enabled or disabled and the
final update version. To continue, click Prepare. SQL Server Setup will first install the required prerequisites
for the selected features followed by the feature installation.
15. During installation, the Prepare Image Progress page provides status so that you can monitor installation
progress as Setup continues.
16. After installation, the Complete page provides a link to the summary log file for the installation and other
important notes. To complete the SQL Server installation process, click Close.
17. If you are instructed to restart the computer, do so now. It is important to read the message from the
Installation Wizard when you have finished with Setup. For more information, see View and Read SQL
Server Setup Log Files.
18. This completes the prepare step. You may complete the image or deploy the prepared image as described
in Considerations for Installing SQL Server Using SysPrep.
Complete Image
Complete a Prepared Instance of SQL Server
1. If you have a prepared instance of SQL Server included in the image of you machine, you will see a shortcut
in the Start Menu. You can also launch the Installation Center and click Image completion of a prepared
stand-alone instance on the Advanced page.
2. The System Configuration Checker runs a discovery operation on your computer. To continue, click OK. You
can view the details on the screen by clicking Show Details, or as an HTML report by clicking View
detailed report.
3. On the Setup Support Files page, click Install to install the Setup support files.
4. The System Configuration Checker verifies the system state of your computer before Setup continues. After
the check is complete, click Next to continue. You can view the details on the screen by clicking Show
Details, or as an HTML report by clicking View detailed report.
5. On the Product Key page, select an option button to indicate whether you are installing a free edition of
SQL Server, or a production version of the product that has a PID key. For more information, see Editions
and Components of SQL Server 2016. If you are installing Evaluation edition the 180-day trial period starts
when you complete this step.
6. On the License Terms page, read the license agreement, and then select the check box to accept the license
terms and conditions. To help improve SQL Server, you can also enable the feature usage option and send
reports to Microsoft.
7. On the Select a Prepared Instance page select the prepared instance you want to complete from the drop
down box. Select the Un-configured instance from the Instance ID list.
Installed instances: This grid displays all the instances including any prepared instance on this machine.
8. On the Feature Review page, you will see the selected features and components included in the install
during the prepare step. If you wish to add more features to your SQL Server Instance not included in the
prepared instance, you must first complete this step to complete the SQL Server Instance, then add the
features from the Add Features on the Installation Center.
NOTE
You can add features that are available for the product version that you are installing. For more information, see
Features Supported by the Editions of SQL Server 2016
9. On the Instance Configuration page, specify the Instance name for the prepared Instance. This is the name
of the instance once you have completed the configuration of SQL Server. Click Next to continue.
Instance ID The Instance ID is used to identify installation directories and registry keys for your instance
of SQL Server. This is the case for default instances and named instances. If the prepared instance is
completed as a default Instance during the Complete step, the instance name is overwritten as
MSSQLSERVER. The Instance ID remains the same as specified during the Prepare step.
Instance root directory The directory specified in the prepare step will be used and cannot be modified
in this step.
All SQL Server service packs and upgrades will apply to every component of an instance of SQL Server.
Installed instances The grid shows instances of SQL Server that are on the computer where Setup is
running.
10. Work flow for the rest of this topic depends on the features that were selected during the prepare step. You
might not see all the pages, depending on the selections.
11. On the Server Configuration Service Accounts page, specify login accounts for SQL Server services.
The actual services that are configured on this page depend on the features that you selected to install.
You can assign the same login account to all SQL Server services, or you can configure each service account
individually. You can also specify whether services start automatically, are started manually, or are disabled.
Microsoft recommends that you configure service accounts individually to provide least privileges for each
service, where SQL Server services are granted the minimum permissions they have to have to complete
their tasks. For more information, see Server Configuration - Service Accounts and Configure Windows
Service Accounts and Permissions.
To specify the same logon account for all service accounts in this instance of SQL Server, provide
credentials in the fields at the bottom of the page.
Security Note Do not use a blank password. Use a strong password.
When you are finished specifying login information for SQL Server services, click Next.
12. Use the Server Configuration Collation tab to specify non-default collations for the Database Engine
and Analysis Services. For more information, see Server Configuration - Collation.
13. Use the Database Engine Configuration - Account Provisioning page to specify the following:
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. For more information, see Database Engine
Configuration - Server Configuration.
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, click Add Current User.
To add or remove accounts from the list of system administrators, click Add or Remove, and then
edit the list of users, groups, or computers that will have administrator privileges for the instance of
SQL Server. For more information, see Database Engine Configuration - Server Configuration.
When you are finished editing the list, click OK. Verify the list of administrators in the configuration
dialog box. When the list is complete, click Next.
14. Use the Database Engine Configuration - Data Directories page to specify nondefault installation directories.
To install to default directories, click Next.
IMPORTANT
If you specify non-default 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.
See Also
What is Windows SysPrep
How does Windows SysPrepWork
Add Features to an Instance of SQL Server 2016
(Setup)
3/29/2017 9 min to read Edit Online
This topic provides a step-by-step procedure for adding features to an instance of SQL Server 2017. Some SQL
Server components or services are specific to an instance of SQL Server. These are also known as instance-aware.
They share the same version as the instance that hosts them, and are used exclusively for that instance. You can
add the instance-aware components to an instance SQL Server, along with the shared components of if they are
not already installed. For a list of features that are supported by the editions of SQL Server, see Features
Supported by the Editions of SQL Server 2016.
To add features to an instance of SQL Server from the command prompt, see Install SQL Server 2016 from the
Command Prompt.
Prerequisites
Before you continue, review topics in Planning a SQL Server Installation.
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 permissions on the remote share.
NOTE
When you add features to an instance of SQL Server 2017, the existing usage report settings are applied to the newly-
added features. To change these settings, use the SQL Server Error and Usage Reporting tool on the SQL
ServerConfiguration Tools menu.
Procedures
To add features to an instance of SQL Server 2017
1. Insert the SQL Server installation media. From the root folder, double-click setup.exe. To install from a
network share, navigate to the root folder on the share, and then double-click setup.exe. If the SQL Server
2017 Setup dialog box appears, Click OK. to install the prerequisites, then click Cancel to quit SQL Server
2017 installation.
2. The Installation Wizard will launch the SQL Server Installation Center. To add a new feature to an existing
instance of SQL Server 2017, click Installation in the left-hand navigation area, and then click New SQL
Server stand-alone installation or add features to an existing installation.
3. The System Configuration Checker will run a discovery operation on your computer. To view the
verification details click View Details. To continue, Click OK..
4. On the Product Updates page, the latest available SQL Server product updates are displayed. If you don't
want to include the updates, clear the Include SQL Server product updates check box. If no product
updates are discovered, SQL Server Setup does not display this page and auto advances to the Install
Setup Files page.
5. On the Install Setup files page, Setup provides the progress of downloading, extracting, and installing the
Setup files. If an update for SQL Server Setup is found, and is specified to be included, that update will also
be installed. Click Install to install Setup Support files.
6. The System Configuration Checker will verify the system state of your computer before Setup continues.
7. On the Installation Type page, select the option Add features to an existing instance of SQL Server
2017, and select the instance you would like to update.
8. On the Feature Selection page, select the components for your installation. A description for each
component group appears in the right-hand 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. Each
component can be installed only once on a given instance of SQL Server. To install multiple components,
you must install an additional instance of SQL Server.
The prerequisites for the selected features are displayed on the right-hand pane. SQL Server Setup will
install the prerequisite that are not already installed during the installation step described later in this
procedure.
The System Configuration Checker will verify the system state of your computer before Setup continues.
Click Next to continue.
9. The Disk Space Requirements page calculates the required disk space for the features you specify, and
compares requirements to the available disk space on the computer where Setup is running.
10. Work flow for the remainder of this topic depends on the features you have specified for your installation.
You might not see all of the pages, depending on your selections.
11. On the Server Configuration Service Accounts page, specify login accounts for SQL Server services. The
actual services that are configured on this page depend on the features you selected to install.
You can assign the same login account to all SQL Server services, or you can configure each service account
individually. You can also specify whether services start automatically, are started manually, or are disabled.
Microsoft recommends that you configure service accounts individually to provide least privileges for each
service, where SQL Server services are granted the minimum permissions they need to complete their
tasks. For more information, see Server Configuration - Service Accounts and Configure Windows Service
Accounts and Permissions.
To specify the same login account for all service accounts in this instance of SQL Server, provide credentials
in the fields at the bottom of the page.
Security Note : Do not use a blank password. Use a strong password.
When you are finished specifying login information for SQL Server services, click Next.
12. Use the Server Configuration - Collation tab to specify non-default collations for the Database Engine
and Analysis Services. For more information, see Server Configuration - Collation.
13. Use the Database Engine Configuration Account Provisioning page to specify the following:
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. For more information, see Database Engine
Configuration - Server Configuration.
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, click Add Current User.
To add or remove accounts from the list of system administrators, click Add or Remove, and then
edit the list of users, groups, or computers that will have administrator privileges for the instance of
SQL Server. For more information, see Database Engine Configuration - Server Configuration.
When you are finished editing the list, click OK. Verify the list of administrators in the configuration
dialog box. When the list is complete, click Next.
14. Use the Database Engine Configuration Data Directories page to specify non-default installation
directories. To install to default directories, click Next.
IMPORTANT
If you specify non-default 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.
IMPORTANT
If you specify non-default 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.
Next Steps
Configure your SQL Server installation
To reduce the attackable surface area of a system, SQL Server selectively installs and activates key services and
features. For more information, see Surface Area Configuration.
See Also
View and Read SQL Server Setup Log Files
Validate a SQL Server Installation
Repair a Failed SQL Server 2016 Installation
Upgrade to SQL Server 2016 Using the Installation Wizard (Setup)
Install SQL Server 2016 from the Command Prompt
Repair a Failed SQL Server Installation
3/29/2017 2 min to read Edit Online
TIP
If the Installation Center was launched using the start menu, you will need to provide the location of the installation
media at this time.
4. Setup support rule and file routines will run to ensure that your system has prerequisites installed and that
the computer passes Setup validation rules. Click OK or Install to continue.
5. On the Select Instance page, select the instance to repair, and then click Next to continue.
6. The repair rules will run to validate the operation. To continue, click Next.
7. The Ready to Repair page indicates that the operation is ready to proceed. To continue, click Repair.
8. The Repair Progress page shows the status of the repair operation. The Complete page indicates that the
operation is finished.
To repair a failed installation of SQL Server using Command Prompt
1. Run the following command at a command prompt:
See Also
View and Read SQL Server Setup Log Files
Installation How-to Topics
Rename a Computer that Hosts a Stand-Alone
Instance of SQL Server
3/29/2017 4 min to read Edit Online
When you change the name of the computer that is running SQL Server, the new name is recognized during SQL
Server startup. You do not have to run Setup again to reset the computer name. Instead, use the following steps to
update system metadata that is stored in sys.servers and reported by the system function @@SERVERNAME.
Update system metadata to reflect computer name changes for remote connections and applications that use
@@SERVERNAME, or that query the server name from sys.servers.
The following steps cannot be used to rename an instance of SQL Server. They can be used only to rename the part
of the instance name that corresponds to the computer name. For example, you can change a computer named
MB1 that hosts an instance of SQL Server named Instance1 to another name, such as MB2. However, the instance
part of the name, Instance1, will remain unchanged. In this example, the \\ComputerName\InstanceName would
be changed from \\MB1\Instance1 to \\MB2\Instance1.
Before you begin
Before you begin the renaming process, review the following information:
When an instance of SQL Server is part of a SQL Server failover cluster, the computer renaming process
differs from a computer that hosts a stand-alone instance.
SQL Server does not support renaming computers that are involved in replication, except when you use log
shipping with replication. The secondary computer in log shipping can be renamed if the primary computer
is permanently lost. For more information, see Log Shipping and Replication (SQL Server).
When you rename a computer that is configured to use Reporting Services, Reporting Services might not be
available after the computer name change. For more information, see Rename a Report Server Computer.
When you rename a computer that is configured to use database mirroring, you must turn off database
mirroring before the renaming operation. Then, re-establish database mirroring with the new computer
name. Metadata for database mirroring will not be updated automatically to reflect the new computer name.
Use the following steps to update system metadata.
Users who connect to SQL Server through a Windows group that uses a hard-coded reference to the
computer name might not be able to connect to SQL Server. This can occur after the rename if the Windows
group specifies the old computer name. To ensure that such Windows groups have SQL Server connectivity
following the renaming operation, update the Windows group to specify the new computer name.
You can connect to SQL Server by using the new computer name after you have restarted SQL Server. To
ensure that @@SERVERNAME returns the updated name of the local server instance, you should manually
run the following procedure that applies to your scenario. The procedure you use depends on whether you
are updating a computer that hosts a default or named instance of SQL Server.
To rename a computer that hosts a stand-alone instance of SQL Server
For a renamed computer that hosts a default instance of SQL Server, run the following procedures:
sp_dropserver <old_name>;
GO
sp_addserver <new_name>, local;
GO
Restart the instance of SQL Server.
For a renamed computer that hosts a named instance of SQL Server, run the following procedures:
sp_dropserver <old_name\instancename>;
GO
sp_addserver <new_name\instancename>, local;
GO
Additional Considerations
Remote Logins - If the computer has any remote logins, running sp_dropserver might generate an error similar
to the following:
Server: Msg 15190, Level 16, State 1, Procedure sp_dropserver, Line 44 There are still remote logins for the
server 'SERVER1'.
To resolve the error, you must drop remote logins for this server.
To drop remote logins
For a default instance, run the following procedure:
sp_dropremotelogin old_name;
GO
sp_dropremotelogin old_name\instancename;
GO
Linked Server Configurations - Linked server configurations will be affected by the computer renaming
operation. Use sp_addlinkedserver or sp_setnetname to update computer name references. For more
information, see the sp_addlinkedserver (Transact-SQL) or sp_setnetname (Transact-SQL).
Client Alias Names - Client aliases that use named pipes will be affected by the computer renaming
operation. For example, if an alias "PROD_SRVR" was created to point to SRVR1 and uses the named pipes
protocol, the pipe name will look like \\SRVR1\pipe\sql\query . After the computer is renamed, the path of
the named pipe will no longer be valid and. For more information about named pipes, see the Creating a
Valid Connection String Using Named Pipes.
See Also
Install SQL Server 2016
Install SQL Server Servicing Updates
3/29/2017 1 min to read Edit Online
This topic provides information about installing updates for SQL Server 2017. This section provides information
about the following:
Installing updates for SQL Server 2017 during a new installation
Installing updates for SQL Server 2017 after it has already been installed.
We recommend that customers evaluate and install latest SQL Server updates in a timely manner to make
sure that systems are up-to-date with the most recent security updates.
Installing Updates for SQL Server 2017 after it has already been
installed
On an installed instance of SQL Server 2017, we recommend that you apply the latest security updates and critical
updates including general distribution releases (GDRs), service packs (SPs), and cumulative updates (CUs). For
additional information, see the March, 2016 announcement to the SQL Server Incremental Servicing Model (ISM).
The SQL Server updates are available through Microsoft Update (MU), Windows Server Update Services (WSUS)
and the Microsoft Download Center. Security and Critical updates for SQL Server are available through Microsoft
Update, and to be able to see these updates you need to opt-into MU through the Windows Update applet in
Control panel.
When you receive an update through Microsoft Update, it will update all SQL Server features to the latest version
in an unattended mode. If you need more flexibility or dont have internet or WSUS access you will need to obtain
the updates from the Microsoft Download Center.
See Also
Install SQL Server 2016 from the Installation Wizard (Setup)
Add Features to an Instance of SQL Server 2016 (Setup)
Repair a Failed SQL Server 2016 Installation
View and Read SQL Server Setup Log Files
3/29/2017 3 min to read Edit Online
Each execution of Setup creates log files are created with a new timestamped log folder at %programfiles%\
Microsoft SQL Server\130\Setup Bootstrap\Log\. The time-stamped log folder name format is
YYYYMMDD_hhmmss. When Setup is run in an unattended mode, the logs are created at % temp%\sqlsetup.log.
All files in the logs folder are archived into the Log\.cab file in their respective log folder.
A typical Setup request goes through three execution phases:
1. Global rules text
2. Component update
3. User-requested action
In each phase, Setup generates detail and summary logs with additional logs created as appropriate.
Setup is called at least three times per user-requested Setup action.
Datastore files contain a snapshot of the state of all configuration objects being tracked by the Setup
process, and are useful for troubleshooting configuration errors. XML file dumps are created for datastore
objects for each execution phase. They are saved in their own log subfolder under the time-stamped log
folder, as follows:
Datastore_GlobalRules
Datastore_ComponentUpdated
Datastore
The following sections describe SQL Server Setup log files.
Summary Text
Overview
This file shows the SQL Server components that were detected during Setup, the operating system environment,
command-line parameter values if they are specified, and the overall status of each MSI/MSP that was executed.
The log is organized into the following sections:
An overall summary of the execution
Properties and the configuration of the computer where SQL Server Setup was run
SQL Server product features previously installed on the computer
Description of the installation version and installation package properties
Runtime input settings that are provided during install
Location of the configuration file
Details of the execution results
Global rules
Rules specific to the installation scenario
Failed rules
Location of the rules report file
Location
It is located at %programfiles%\ Microsoft SQL Server\130\Setup Bootstrap\Log\.
To find errors in the summary text file, search the file by using the "error" or "failed" keywords.
Summary_engine-base_YYYYMMDD_HHMMss.txt
Overview
The summary_engine base file is similar to the summary file and is generated during the main workflow.
Location
It is located at %programfiles%\ Microsoft SQL Server\130\Setup Bootstrap\Log\\.
Summary_engine-
base_YYYYMMDD_HHMMss_ComponentUpdate.txt
Overview
The component update summary log file is similar to the summary file and is generated during the component
update workflow.
Location
It is located at %programfiles%\ Microsoft SQL Server\130\Setup Bootstrap\Log\\.
Summary_engine-
base_<VersionNumber>MMDD_HHMMss_GlobalRules.txt
Overview
The global rules summary log file is similar to the summary file generated during the global rules workflow.
Location
It is located at %programfiles%\ Microsoft SQL Server\130\Setup Bootstrap\Log\\.
Detail.txt
Overview
Detail.txt is generated for the main workflow such as install or upgrade, and provides the details of the
execution. The logs in the file are generated based on the time when each action for the installation was invoked,
and show the order in which the actions were executed, and their dependencies.
Location
It is located at %programfiles%\ Microsoft SQL Server\130\Setup
Bootstrap\Log\\Detail.txt.
If an error occurs during the Setup process, the exception or error are logged at the end of this file. To find the
errors in this file, first examine the end of the file followed by a search of the file for the "error" or "exception"
keywords.
Detail_ComponentUpdate.txt
Overview
The Detail_ComponentUpdate.txt file is generated for the component update workflow and is similar to
Detail.txt.
Location
It is located at %programfiles%\ Microsoft SQL Server\130\Setup Bootstrap\Log\\.
Detail_GlobalRules.txt
Overview
Detail_GlobalRules.txt is generated for the global rules execution and is similar to Detail.txt.
Location
It is located at %programfiles%\ Microsoft SQL Server\130\Setup Bootstrap\Log\\.
ConfigurationFile.ini
Overview
The configuration file contains the input settings that are provided during installation. It can be used to restart
the installation without having to enter the settings manually. However, passwords for the accounts, PID, and
some parameters are not saved in the configuration file. The settings can be either added to the file or provided
by using the command line or the Setup user interface. For more information, see Install SQL Server 2016 Using
a Configuration File.
Location
It is located at %programfiles%\ Microsoft SQL Server\130\Setup Bootstrap\Log\\.
SystemConfigurationCheck_Report.htm
Overview
The system configuration check report contains a short description for each executed rule, and the execution
status.
Location
It is located at %programfiles%\ Microsoft SQL Server\130\Setup Bootstrap\Log\\.
See Also
Install SQL Server 2016
Validate a SQL Server Installation
3/29/2017 1 min to read Edit Online
The SQL Server discovery report can be used to verify the version of SQL Server and the SQL Server features
installed on the computer. The Installed SQL Server features discovery report displays a report of all SQL
Server 2000, SQL Server 2005, SQL Server 2008, SQL Server 2008 R2, SQL Server 2012, SQL Server 2014, and
SQL Server 2016 products and features that are installed on the local server. The SQL Server features discovery
report is available on the Tools page on the SQL Server Installation center.
To run SQL Server features discovery report:
Launch the SQL Server Installation center, using the Start menu, point to All Programs, point to Microsoft SQL
Server <Version Name>, point to Configuration Tools, and click SQL Server Installation Center. To run the
SQL Server features discovery report, click Tools in the left-hand navigation area of SQL Server Installation
Center, and then click Installed SQL Server features discovery report.
The SQL Server discovery report is saved to %ProgramFiles%\ Microsoft SQL Server\130\Setup Bootstrap\Log\.
You can also generate the discovery report through the command line. Run Setup.exe /Action=RunDiscovery
from a command prompt If you add /q to the command line above no UI will be shown, but the report will still
be created in %ProgramFiles%\ Microsoft SQL Server\130\Setup Bootstrap\Log\.
See Also
View and Read SQL Server Setup Log Files
Installing Updates from the Command Prompt
3/29/2017 2 min to read Edit Online
Test and modify installation scripts to meet the needs of your organization.
NOTE
The update installer ensures that the shared components are always at or above the version of the instance at the
highest level.
/allinstances Applies the SQL Server update to all instances of SQL Server
and to all SQL Server shared, instance-unaware components.
*You cannot specify this parameter to apply an update to a prepared instance of SQL Server. You must specify the
/instanceID parameter instead.
See Also
Overview of SQL Server Servicing Installation
Local Audit for SQL Server Usage Feedback
Collection
3/29/2017 11 min to read Edit Online
Introduction
Microsoft SQL Server 2016 (SQL Server) contains Internet-enabled features that can collect and send information
about your computer or device ("standard computer information") to Microsoft. The Local Audit component of SQL
Server Usage Feedback collection writes data collected by the service to a designated folder, representing the data
(logs) that will be sent to Microsoft. The purpose of the Local Audit is to allow customers to see all data Microsoft
collects with this feature, for compliance, regulatory or privacy validation reasons.
In SQL Server 2016 CU2, Local Audit is configurable at instance level for SQL Server Database Engine and Analysis
Services (SSAS). Local Audit is not enabled yet for SQL Server Integration Services (SSIS). Other SQL Server
components that get installed during Setup and SQL Server Tools that are downloaded or installed after Setup do
not have Local Audit capability for usage feedback collection.
Prerequisites
The following are prerequisites to enable Local Audit on each SQL Server instance:
1. The instance is patched to SQL Server 2016 RTM CU2 or above.
2. User must be a System Administrator or a role with access to add and modify Registry Key, create folders,
manage folder security and stop/start a Windows Service.
Note: Configure the directory path for Local Audit outside the SQL Server installation path to avoid allowing
auditing functionality and patching to cause potential problems with SQL Server.
Grant permissions to the SQL Server Enable List folder contents, Read and
CIEP Telemetry service logon account Write access to the SQL Server CEIP
Telemetry service logon account
Grant permissions to the SQL Server CIEP Telemetry service logon account
1. In File Explorer, navigate to the location where the new folder is located.
2. Right-click the new folder and choose Properties.
3. On the Security tab, click Edit manage Permission.
4. Click Add and type the credential of the SQL Server CEIP Telemetry Service, for example
NT Service\SQLTELEMETRY .
5. Click on Check Names to validate the name you provided, then click OK.
6. On the Permission dialog box, choose the Log On account to SQL Server CEIP Telemetry service and click
on List folder contents, Read and Write.
7. Click OK to apply the permission changes immediately.
Create a registry key setting to configure Local Audit target directory.
1. Launch regedit.
2. Navigate to the appropriate CPE path.
For Database Engine use HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL13.
<INSTANCENAME>\CPE.
For Analysis Services use HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSAS13.
<INSTANCENAME>\CPE.
3. Right-click on the CPE path and choose New. Click String Value.
4. Name the new registry key UserRequestedLocalAuditDirectory .
Note: After enabling Local Audit it may take up to 5 minutes for the log file to be written for the first time.
Maintenance
1. To limit disk space usage by the files written by Local Audit, setup a policy or a regular job to clean up the
Local Audit Directory to remove older, unneeded files.
2. Secure the Local Audit Directory path so that it is only accessible by the appropriate people. Please note that
the log files contain information as outlined in How to configure SQL Server 2016 to send feedback to
Microsoft. Access to this file should prevent most members of your organization from reading it.
Data data
operatingSystem The OS version where SQL Server Microsoft Windows Server 2012 R2
instance is installed Datacenter
Trace Categories
Currently we collect the following trace categories:
SQLServerXeQueries: contains data points collected through Extended Event session.
SQLServerPeriodicQueries: contains data points collected through periodic queries executed in a SQL
Server instance.
SQLServerPerDBPeriodicQueries: contains data points collected through periodic queries executed to up
to 30 databases in a SQL Server instance.
SQLServerOneSettingsException: contains exception messages related to updating schema and/or query
set.
DigitalProductID: contains data points for aggregating anonymized (SHA-256) hashed digital product ID of
SQL Server instances.
Local Audit File Examples
Below is an excerpt of a JSON file output of Local Audit.
{
"hostName": "de3b3769a63970b63981ab7a956401388962c986bfd39d371f5870d800627d11",
"domainHash": "de3b3769a63970b63981ab7a956401388962c986bfd39d371f5870d800627d11",
"sqmId": "02AF58F5-753A-429C-96CD-3900E90DB990",
"instanceName": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"schemaVersion": "3",
"emitTime": "2016-09-08T17:20:22.1124269Z",
"sessionId": "89decf9a-ad11-485c-94a7-fefb3a02ed86",
"correlationId": 0,
"sequence": 15,
"clientVersion": "13.0.2161.3 ((SQL16_RTM_QFE-CU).160907-1223)",
"operatingSystem": "Microsoft Windows Server 2012 R2 Datacenter",
"querySetVersion": "1.0.0.0",
"traceName": "SQLServerPeriodicQueries",
"queryIdentifier": "SQLServerProperties.002",
"data": [
{
"Collation": "SQL_Latin1_General_CP1_CI_AS",
"SqlFTinstalled": "0",
"SqlIntSec": "1",
"IsSingleUser": "0",
"SqlFilestreamMode": "0",
"SqlPbInstalled": "0",
"SqlPbNodeRole": "",
"SqlVersionMajor": "13",
"SqlVersionMinor": "0",
"SqlVersionBuild": "2161",
"ProductBuildType": "",
"ProductLevel": "RTM",
"ProductUpdateLevel": "CU2",
"ProductUpdateReference": "KB3182270",
"ProductRevision": "3",
"SQLEditionId": "-1534726760",
"IsClustered": "0",
"IsHadrEnabled": "0",
"SqlAdvAInstalled": "0",
"PacketReceived": "1210",
"Version": "Microsoft SQL Server 2016 (RTM-CU2) (KB3182270) - 13.0.2161.3 (X64) \n\tSep 7 2016
14:24:16 \n\tCopyright (c) Microsoft Corporation\n\tStandard Edition (64-bit) on Windows Server 2012 R2
Datacenter 6.3 \u003cX64\u003e (Build 9600: ) (Hypervisor)\n"
}
],
"query": "SELECT\n SERVERPROPERTY(\u0027Collation\u0027) AS [Collation],\n
SERVERPROPERTY(\u0027IsFullTextInstalled\u0027) AS [SqlFTinstalled],\n
SERVERPROPERTY(\u0027IsIntegratedSecurityOnly\u0027) AS [SqlIntSec],\n
SERVERPROPERTY(\u0027IsSingleUser\u0027) AS [IsSingleUser],\n SERVERPROPERTY
(\u0027FileStreamEffectiveLevel\u0027) AS [SqlFilestreamMode],\n
SERVERPROPERTY(\u0027IsPolybaseInstalled\u0027) AS [SqlPbInstalled],\n
SERVERPROPERTY(\u0027PolybaseRole\u0027) AS [SqlPbNodeRole],\n
SERVERPROPERTY(\u0027PolybaseRole\u0027) AS [SqlPbNodeRole],\n
SERVERPROPERTY(\u0027ProductMajorVersion\u0027) AS [SqlVersionMajor],\n
SERVERPROPERTY(\u0027ProductMinorVersion\u0027) AS [SqlVersionMinor],\n
SERVERPROPERTY(\u0027ProductBuild\u0027) AS [SqlVersionBuild],\n
SERVERPROPERTY(\u0027ProductBuildType\u0027) AS ProductBuildType,\n
SERVERPROPERTY(\u0027ProductLevel\u0027) AS ProductLevel,\n SERVERPROPERTY(\u0027ProductUpdateLevel\u0027)
AS ProductUpdateLevel,\n SERVERPROPERTY(\u0027ProductUpdateReference\u0027) AS ProductUpdateReference,\n
RIGHT(CAST(SERVERPROPERTY(\u0027ProductVersion\u0027) AS NVARCHAR(30)),CHARINDEX(\u0027.\u0027,
REVERSE(CAST(SERVERPROPERTY(\u0027ProductVersion\u0027) AS NVARCHAR(30)))) - 1) AS ProductRevision,\n
SERVERPROPERTY(\u0027EditionID\u0027) AS SQLEditionId,\n SERVERPROPERTY(\u0027IsClustered\u0027) AS
IsClustered,\n SERVERPROPERTY(\u0027IsHadrEnabled\u0027) AS IsHadrEnabled,\n
SERVERPROPERTY(\u0027IsAdvancedAnalyticsInstalled\u0027) AS [SqlAdvAInstalled],\n @@PACK_RECEIVED AS
PacketReceived,\n @@VERSION AS Version",
"queryTimeInTicks": 0
} ,
{
"hostName": "de3b3769a63970b63981ab7a956401388962c986bfd39d371f5870d800627d11",
"domainHash": "de3b3769a63970b63981ab7a956401388962c986bfd39d371f5870d800627d11",
"sqmId": "02AF58F5-753A-429C-96CD-3900E90DB990",
"instanceName": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"schemaVersion": "3",
"emitTime": "2016-09-08T17:20:24.9819144Z",
"sessionId": "89decf9a-ad11-485c-94a7-fefb3a02ed86",
"correlationId": 0,
"sequence": 61,
"clientVersion": "13.0.2161.3 ((SQL16_RTM_QFE-CU).160907-1223)",
"operatingSystem": "Microsoft Windows Server 2012 R2 Datacenter",
"querySetVersion": "1.0.0.0",
"traceName": "SQLServerPeriodicQueries",
"queryIdentifier": "ExternalScriptStats.001",
"data": [
{
"counter_name": "Total Executions
",
"cntr_value": "0"
},
{
"counter_name": "Parallel Executions
",
"cntr_value": "0"
},
{
"counter_name": "Streaming Executions
",
"cntr_value": "0"
},
{
"counter_name": "SQL CC Executions
",
"cntr_value": "0"
},
{
"counter_name": "Implied Auth. Logins
",
"cntr_value": "0"
},
{
"counter_name": "Total Execution Time (ms)
",
"cntr_value": "0"
},
{
"counter_name": "Execution Errors
",
"cntr_value": "0"
}
],
"query": "select counter_name, cntr_value from sys.dm_os_performance_counters where object_name like
\u0027%External Scripts%\u0027",
"queryTimeInTicks": 155834
"queryTimeInTicks": 155834
}
-- Check if the JSON file has been read properly and if it's in a JSON format
SELECT
@JSONFile LocalAuditOutput,
ISJSON(@JSONFile) IsFileInJSONFormat
-- Get the query identifier, query and the data (output of the query)
SELECT
sequence,
queryIdentifier,
query,
data
FROM OPENJSON(@JSONFile)
WITH (sessionId VARCHAR(64)
,sequence INT
,queryIdentifier VARCHAR(128)
,query VARCHAR(MAX)
,data NVARCHAR(MAX) AS JSON)
-- Get specific details about the output of "DatabaseProperties.001" query
SELECT
QueryIdentifier,
DatabaseID,
CompatibilityLevel,
IsQueryStoreOn
FROM OPENJSON(@JSONFile)
WITH (sessionId VARCHAR(64)
,sequence INT
,queryIdentifier VARCHAR(128)
,query VARCHAR(MAX)
,data NVARCHAR(MAX) AS JSON)
CROSS APPLY OPENJSON(data)
WITH ( DatabaseID varchar(128) '$.database_id'
,CompatibilityLevel varchar(128) '$.compatibility_level'
,IsQueryStoreOn varchar(128) '$.QS'
)
WHERE queryIdentifier = 'DatabaseProperties.001'
See Also
Local Audit for SSMS Usage Feedback Collection