使用 SysPrep 安装 SQL ServerInstall SQL Server with SysPrep

适用对象: yesSQL Server(仅限 Windows)noAzure SQL 数据库 noAzure SQL 数据仓库 no并行数据仓库APPLIES TO: yesSQL Server (Windows only) noAzure SQL Database noAzure SQL Data Warehouse noParallel Data Warehouse

SQL ServerSQL Server SysPrep 相关的安装操作可以通过安装中心来访问。SysPrep related setup actions can be accessed through the Installation Center. “安装中心”的“高级”页具有两个选项 -“SQL ServerSQL Server 的独立实例的映像准备”和“SQL ServerSQL Server 的已准备独立实例的映像完成”。The Advanced Page of the Installation Center has two options - Image preparation of a stand-alone instance of SQL ServerSQL Server and Image completion of a prepared stand-alone instance of SQL ServerSQL Server. 准备完成 部分将详细说明安装过程。The Prepare and Complete sections describe the installation process in detail. 有关详细信息,请参阅 Considerations for Installing SQL Server Using SysPrepFor more information, see Considerations for Installing SQL Server Using SysPrep.

还可以使用命令提示符或配置文件准备和完成 SQL ServerSQL Server 的实例。You can also prepare and complete an instance of SQL ServerSQL Server using the command prompt or a configuration file. 有关详细信息,请参阅:For more information, see:

必备条件Prerequisites

安装 SQL ServerSQL Server 之前,请查阅计划 SQL Server 安装中的文章。Before you install SQL ServerSQL Server, review the articles in Planning a SQL Server Installation.

有关 SQL ServerSQL Server 版本及硬件和软件要求的详细信息,请参阅安装 SQL Server 的硬件和软件要求For more information about SQL ServerSQL Server editions and the hardware and software requirements, see Hardware and Software Requirements for Installing SQL Server.

SQL ServerSQL Server SysPrep 群集支持SQL ServerSQL Server SysPrep Cluster Support

SQL Server 2014 (12.x)SQL Server 2014 (12.x)开始,SysPrep 支持从命令行安装群集 SQL ServerSQL Server 实例。Beginning in SQL Server 2014 (12.x)SQL Server 2014 (12.x), SysPrep supports clustered SQL ServerSQL Server instances in command line installations. 有关详细信息,请参阅 什么是 Sysprep?For more information, see What is Sysprep?.

准备 SQL ServerSQL Server 故障转移群集(无人参与)To Prepare a SQL ServerSQL Server Failover Cluster (Unattended)

  1. 准备映像(如 使用 SysPrep 安装 SQL Server 的注意事项中所述)并通过 SysPrep 一般化捕获 Windows 映像。Prepare the image (as discussed in Considerations for Installing SQL Server Using SysPrep) and capture the windows image through SysPrep Generalization. 以下示例准备该映像:The following sample prepares the image:

    Setup.exe /q /ACTION=PrepareImage l /FEATURES=SQLEngine /InstanceID =<MYINST> /IACCEPTSQLSERVERLICENSETERMS  
    

    然后运行 Windows SysPrep 一般化。Then run Windows SysPrep Generalization.

  2. 通过运行 Windows SysPrep 特殊化来部署该映像。Deploy the image by running Windows SysPrep Specialize.

  3. 创建 Windows 故障转移群集。Create the Windows Failover Cluster.

  4. 使用 /ACTION=PrepareFailoverCluster 所有节点运行 setup.exe。Run setup.exe with /ACTION=PrepareFailoverCluster all nodes. 例如:For example:

    setup.exe /q /ACTION=PrepareFailoverCluster /InstanceName=<InstanceName> /Features=SQLEngine  /SQLSVCACCOUNT="<DomainName\UserName>" /SQLSVCPASSWORD="xxxxxxxxxxx"  /IACCEPTSQLSERVERLICENSETERMS  
    

完成 SQL ServerSQL Server 故障转移群集(无人参与)Complete a SQL ServerSQL Server failover cluster (Unattended)

  1. 使用在拥有可用存储组的节点上的 /ACTION=CompleteFailoverCluster 运行 setup.exe:Run setup.exe with /ACTION=CompleteFailoverCluster on the node that owns the available storage group:

    setup.exe /q /ACTION=CompleteFailoverCluster /InstanceName=<InstanceName>  /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>"  
    

向现有 SQL ServerSQL Server 故障转移群集添加节点(无人参与)Adding a node to an existing SQL ServerSQL Server failover cluster (Unattended)

  1. 通过运行 Windows SysPrep 特殊化来部署该映像。Deploy the image by running Windows SysPrep Specialize.

  2. 加入 Windows 故障转移群集。Join the Windows Failover Cluster.

  3. 使用在所有节点上的 /ACTION=AddNode 运行 setup.exe:Run setup.exe with /ACTION=AddNode on all nodes:

    setup.exe /q /ACTION=AddNode /InstanceName=<InstanceName> /Features=SQLEngine  /SQLSVCACCOUNT="<DomainName\UserName>" /SQLSVCPASSWORD="xxxxxxxxxxx"  /IACCEPTSQLSERVERLICENSETERMS  
    

准备映像Prepare Image

准备 SQL ServerSQL Server的独立实例。Prepare a stand-alone instance of SQL ServerSQL Server.

  1. 插入 SQL ServerSQL Server 安装介质,Insert the SQL ServerSQL Server installation media. 然后双击根文件夹中的 Setup.exe。From the root folder, double-click Setup.exe. 若要从网络共享进行安装,请找到共享中的根文件夹,然后双击 Setup.exe。To install from a network share, locate the root folder on the share, and then double-click Setup.exe.

  2. 安装向导将运行 SQL ServerSQL Server 安装中心。The Installation Wizard runs the SQL ServerSQL Server Installation Center. 若要准备 SQL ServerSQL Server 实例,请单击“高级”页上的“SQL ServerSQL Server 的独立实例的映像准备”。To prepare an instance of SQL ServerSQL Server, click Image preparation of a stand-alone instance of SQL ServerSQL Server on the Advanced page.

  3. 系统配置检查器将在您的计算机上运行发现操作。The System Configuration Checker runs a discovery operation on your computer. 若要继续,请单击 “确定”To continue, click OK. 您可以通过单击 “显示详细信息” 在屏幕上查看详情,或通过单击 “查看详细报告” 从而以 HTML 报告的形式进行查看。You can view the details on the screen by clicking Show Details, or as an HTML report by clicking View detailed report.

  4. 在“产品更新”页中,将显示最近提供的 SQL ServerSQL Server 产品更新。On the Product Updates page, the latest available SQL ServerSQL Server product updates are displayed. 如果你不想包括更新,则取消选中“包括 SQL ServerSQL Server 产品更新”复选框。If you don't want to include the updates, clear the Include SQL ServerSQL Server product updates check box. 如果未发现任何产品更新, SQL ServerSQL Server 安装程序将不会显示该页并且自动前进到 “安装安装程序文件” 页。If no product updates are discovered, SQL ServerSQL 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. 如果找到了针对 SQL ServerSQL Server 安装程序的更新,并且指定了包括该更新,则也将安装该更新。If an update for SQL ServerSQL 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. 您可以通过单击 “显示详细信息” 在屏幕上查看详情,或通过单击 “查看详细报告” 从而以 HTML 报告的形式进行查看。You can view the details on the screen by clicking Show Details, or as an HTML report by clicking View detailed report.

  7. 在“准备映像类型”页中,选择“准备 SQL ServerSQL Server 的新实例”。On the Prepare Image Type page, select Prepare a new instance of SQL ServerSQL Server.

    仅当计算机上存在未配置的已准备 SQL ServerSQL Server 实例时,才显示“准备映像类型”页。The Prepare Image Type page is displayed only when you have an existing un-configured prepared instance of SQL ServerSQL Server on the machine. 您可以选择准备 SQL ServerSQL Server 的新实例,或者将 sys prep 支持的功能添加到计算机上 SQL ServerSQL Server 的现有已准备实例。You can choose to prepare a new instance of SQL ServerSQL Server or add sys prep supported features to an existing prepared instance of SQL ServerSQL Server on the machine. 有关如何向 SQL ServerSQL Server 的已准备实例添加功能的详细信息,请参阅 向已准备实例添加功能For more information on how to add features to a prepared instance of SQL ServerSQL 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. 为了帮助改进 SQL ServerSQL Server,您还可以启用功能使用情况选项并将报告发送给 MicrosoftMicrosoftTo help improve SQL ServerSQL Server, you can also enable the feature usage option and send reports to MicrosoftMicrosoft.

  9. “功能选择” 页上,选择要安装的组件:On the Feature Selection page, select the components for your installation:

    SQL Server 2017SQL Server 2017 SysPrepSysPrep 数据库引擎Database Engine

    SQL ServerSQL Server 复制Replication

    全文功能Full-Text Features

    “数据库引擎服务”Data Quality Services

    Reporting ServicesReporting Services 本机模式下的in Native mode

    Analysis ServicesAnalysis 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. 有关详细信息,请参阅 SQL Server 的各版本和支持的功能For more information, see Editions and supported features of SQL Server.

    在右侧窗格中显示所选功能的必备组件。The prerequisites for the selected features are displayed on the right-hand pane. SQL ServerSQL 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. 您可以通过单击 “显示详细信息” 在屏幕上查看详情,或通过单击 “查看详细报告” 从而以 HTML 报告的形式进行查看。You can view the details on the screen by clicking Show Details, or as an HTML report by clicking View detailed report.

  11. 在“实例配置”页上,指定实例的实例 ID。On the Instance Configuration page, specify the Instance ID for the Instance. 单击 “下一步” 继续。Click Next to continue.

    实例 ID - 实例 ID 用于标识 SQL ServerSQL Server实例的安装目录和注册表项。Instance ID - The Instance ID is used to identify installation directories and registry keys for your instance of SQL ServerSQL Server. 默认实例和命名实例的默认方式都是如此。This is the case for default instances and named instances. 如果已准备实例在“完成”步骤中作为默认实例完成,则该实例名称将被覆盖为 MSSQLSERVER。If the prepared instance is completed as a default Instance during the Complete step, the instance name is overwritten as MSSQLSERVER. 实例 ID 仍保持指定的 ID。The Instance ID remains the same as specified.

    实例根目录 - 默认情况下,实例根目录为 C:\Program Files\Microsoft SQL Server\nnn\ C:\Program Files\Microsoft SQL Server\nnn\。Instance root directory - By default, the instance root directory is C:\Program Files\Microsoft SQL Server\nnn\ C:\Program Files\Microsoft SQL Server\nnn\. 若要指定一个非默认的根目录,请使用所提供的字段,或单击“浏览”以找到一个安装文件夹。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.

    所有 SQL ServerSQL Server Service Pack 和升级都将应用于 SQL ServerSQL Server实例的每个组件。All SQL ServerSQL Server service packs and upgrades will apply to every component of an instance of SQL ServerSQL Server.

    已安装的实例 — 该网格显示安装程序正在其中运行的计算机上的 SQL ServerSQL Server 实例。Installed Instances - The grid shows instances of SQL ServerSQL 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. 系统配置检查器将运行准备映像规则来针对您指定的 SQL ServerSQL Server 功能验证您的计算机配置。The System Configuration Checker will run prepare image rules to validate your computer configuration with the SQL ServerSQL Server features that you have specified. 您可以通过单击 “显示详细信息” 在屏幕上查看详情,或通过单击 “查看详细报告” 从而以 HTML 报告的形式进行查看。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 ServerSQL 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. 若要完成 SQL ServerSQL Server 安装过程,请单击 “关闭”To complete the SQL ServerSQL 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. 有关详细信息,请参阅 View and Read SQL Server Setup Log FilesFor more information, see View and Read SQL Server Setup Log Files.

  18. 这将完成准备步骤。This completes the prepare step. 您可以完成该映像或者按 Considerations for Installing SQL Server Using SysPrep中所述部署准备的映像。You may complete the image or deploy the prepared image as described in Considerations for Installing SQL Server Using SysPrep.

完成映像Complete Image

完成 SQL ServerSQL ServerComplete a Prepared Instance of SQL ServerSQL Server

  1. 如果在您的计算机的映像中包括了一个 SQL ServerSQL Server 的已准备实例,则在“开始”菜单中会看到一个相应的快捷方式。If you have a prepared instance of SQL ServerSQL 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. 您可以通过单击 “显示详细信息” 在屏幕上查看详情,或通过单击 “查看详细报告” 从而以 HTML 报告的形式进行查看。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. 您可以通过单击 “显示详细信息” 在屏幕上查看详情,或通过单击 “查看详细报告” 从而以 HTML 报告的形式进行查看。You can view the details on the screen by clicking Show Details, or as an HTML report by clicking View detailed report.

  5. “产品密钥” 页上,选择某一选项按钮,该按钮指示您是安装免费版本的 SQL ServerSQL Server,还是安装具有 PID 密钥的产品的生产版本。On the Product Key page, select an option button to indicate whether you are installing a free edition of SQL ServerSQL Server, or a production version of the product that has a PID key. 有关详细信息,请参阅 SQL Server 的各版本和支持的功能For more information, see Editions and supported features of SQL Server. 如果您在安装 Evaluation 版,则 180 天的试用期将从您完成此步骤时开始。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. 为了帮助改进 SQL ServerSQL Server,您还可以启用功能使用情况选项并将报告发送给 MicrosoftMicrosoftTo help improve SQL ServerSQL Server, you can also enable the feature usage option and send reports to MicrosoftMicrosoft.

  7. “选择已准备实例” 页上,从下拉框中选择您要完成的已准备实例。On the Select a Prepared Instance page select the prepared instance you want to complete from the drop down box. 从“实例 ID”列表中选择未配置的实例。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. 如果您要向未在已准备实例中包括的 SQL ServerSQL Server 实例添加更多功能,则必须首先完成此步骤以完成 SQL ServerSQL Server 实例,然后从 “安装中心”“添加功能” 上添加功能。If you wish to add more features to your SQL ServerSQL Server Instance not included in the prepared instance, you must first complete this step to complete the SQL ServerSQL Server Instance, then add the features from the Add Features on the Installation Center.

    备注

    您可以添加可用于您正在安装的产品版本的功能。You can add features that are available for the product version that you are installing. 有关详细信息,请参阅 SQL Server 的各版本和支持的功能For more information, see Editions and supported features of SQL Server.

  9. 在“实例配置”页上,指定已准备实例的实例名称。On the Instance Configuration page, specify the Instance name for the prepared Instance. 这是您完成 SQL ServerSQL Server的配置后的实例的名称。This is the name of the instance once you have completed the configuration of SQL ServerSQL Server. 单击 “下一步” 继续。Click Next to continue.

    实例 ID - 实例 ID 用于标识 SQL ServerSQL Server实例的安装目录和注册表项。Instance ID - The Instance ID is used to identify installation directories and registry keys for your instance of SQL ServerSQL Server. 默认实例和命名实例的默认方式都是如此。This is the case for default instances and named instances. 如果已准备实例在“完成”步骤中作为默认实例完成,则该实例名称将被覆盖为 MSSQLSERVER。If the prepared instance is completed as a default Instance during the Complete step, the instance name is overwritten as MSSQLSERVER. 实例 ID 仍保持准备阶段中指定的 ID。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.

    所有 SQL ServerSQL Server Service Pack 和升级都将应用于 SQL ServerSQL Server实例的每个组件。All SQL ServerSQL Server service packs and upgrades will apply to every component of an instance of SQL ServerSQL Server.

    已安装的实例 - 该网格显示安装程序正在其中运行的计算机上的 SQL ServerSQL Server 实例。Installed instances - The grid shows instances of SQL ServerSQL Server that are on the computer where Setup is running.

  10. 本文中的其余工作流取决于在准备步骤中已选择的功能。Work flow for the rest of this article depends on the features that were selected during the prepare step. 您可能不会看到所有的页面,具体取决于进行的选择。You might not see all the pages, depending on the selections.

  11. 在“服务器配置 - 服务帐户”页上指定 SQL ServerSQL Server 服务的登录帐户。On the Server Configuration - Service Accounts page, specify login accounts for SQL ServerSQL Server services. 此页上配置的实际服务取决于您选择安装的功能。The actual services that are configured on this page depend on the features that you selected to install.

    您可以为所有的 SQL ServerSQL Server 服务分配相同的登录帐户,也可以单独配置各个服务帐户。You can assign the same login account to all SQL ServerSQL Server services, or you can configure each service account individually. 您还可以指定是自动启动、手动启动还是禁用服务。You can also specify whether services start automatically, are started manually, or are disabled. MicrosoftMicrosoft 建议您逐个配置服务帐户,以便为每项服务提供最低权限,其中 SQL ServerSQL Server 服务将被授予完成其任务所必须具备的最低权限。recommends that you configure service accounts individually to provide least privileges for each service, where SQL ServerSQL Server services are granted the minimum permissions they have to have to complete their tasks. 有关详细信息,请参阅 服务器配置 - 服务帐户配置 Windows 服务帐户和权限For more information, see Server Configuration - Service Accounts and Configure Windows Service Accounts and Permissions.

    若要为此 SQL ServerSQL Server实例中的所有服务帐户指定同一个登录帐户,请在该页底部的字段中提供凭据。To specify the same logon account for all service accounts in this instance of SQL ServerSQL Server, provide credentials in the fields at the bottom of the page.

    安全说明 不要使用空密码。Do not use a blank password. 请使用强密码。Use a strong password.Security Note 不要使用空密码。Do not use a blank password. 请使用强密码。Use a strong password.

    SQL ServerSQL Server 服务指定登录信息后,请单击 “下一步”When you are finished specifying login information for SQL ServerSQL Server services, click Next.

  12. 使用“服务器配置 - 排序规则”选项卡为 数据库引擎Database EngineAnalysis ServicesAnalysis Services 指定非默认的排序规则。Use the Server Configuration - Collation tab to specify non-default collations for the 数据库引擎Database Engine and Analysis ServicesAnalysis Services. 有关详细信息,请参阅服务器配置 - 排序规则For more information, see Server Configuration - Collation.

  13. 使用“ 数据库引擎Database Engine 配置 - 帐户设置”页指定以下各项:Use the 数据库引擎Database Engine Configuration - Account Provisioning page to specify the following:

    • 安全模式 - 为您的 SQL ServerSQL Server实例选择 Windows 身份验证或混合模式身份验证。Security Mode - Select Windows Authentication or Mixed Mode Authentication for your instance of SQL ServerSQL Server. 如果选择“混合模式身份验证”,则必须为内置 SQL ServerSQL Server 系统管理员帐户提供一个强密码。If you select Mixed Mode Authentication, you must provide a strong password for the built-in SQL ServerSQL Server system administrator account.

      在设备与 SQL ServerSQL Server成功建立连接之后,用于 Windows 身份验证和混合模式身份验证的安全机制是相同的。After a device establishes a successful connection to SQL ServerSQL Server, the security mechanism is the same for both Windows Authentication and Mixed Mode. 有关详细信息,请参阅 数据库引擎配置 - 服务器配置For more information, see Database Engine Configuration - Server Configuration.

    • SQL ServerSQL Server 管理员 - 必须为 SQL ServerSQL Server实例至少指定一个系统管理员。Administrators - You must specify at least one system administrator for the instance of SQL ServerSQL Server. 若要添加用以运行 SQL ServerSQL Server 安装程序的帐户,请单击 “添加当前用户”To add the account under which SQL ServerSQL Server Setup is running, click Add Current User. 若要向系统管理员列表中添加帐户或从中删除帐户,请单击 “添加”“删除”,然后编辑将拥有 SQL ServerSQL Server实例的管理员特权的用户、组或计算机的列表。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 ServerSQL 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. 使用“ 数据库引擎Database Engine 配置 - 数据目录”页指定非默认的安装目录。Use the 数据库引擎Database Engine Configuration - Data Directories page to specify nondefault installation directories. 若要安装到默认目录,请单击 “下一步”To install to default directories, click Next.

    重要

    如果指定非默认的安装目录,请确保安装文件夹对于此 SQL ServerSQL Server实例是唯一的。If you specify non-default installation directories, ensure that the installation folders are unique to this instance of SQL ServerSQL Server. 此对话框中的任何目录都不应与其他 SQL ServerSQL Server实例的目录共享。None of the directories in this dialog box should be shared with directories from other instances of SQL ServerSQL Server.

    有关详细信息,请参阅 数据库引擎配置 - 数据目录For more information, see Database Engine Configuration - Data Directories.

  15. 使用“ 数据库引擎Database Engine 配置 - FILESTREAM”页对 SQL ServerSQL Server实例启用 FILESTREAM。Use the 数据库引擎Database Engine Configuration - FILESTREAM page to enable FILESTREAM for your instance of SQL ServerSQL Server. 有关详细信息,请参阅 数据库引擎配置 - 文件流For more information, see Database Engine Configuration - Filestream.

  16. 使用“ Reporting ServicesReporting Services 配置”页指定要创建的 Reporting ServicesReporting Services 安装类型。Use the Reporting ServicesReporting Services Configuration page to specify the kind of Reporting ServicesReporting Services installation to create. 有关 Reporting ServicesReporting Services 配置模式的详细信息,请参阅 Reporting Services 配置选项 (SSRS)For more information about Reporting ServicesReporting Services configuration modes, see Reporting Services Configuration Options (SSRS).

  17. “错误报告” 页上,指定要发送到 MicrosoftMicrosoft 以帮助改进 SQL ServerSQL Server的信息。On the Error Reporting page, specify the information that you want to send to MicrosoftMicrosoft that will help improve SQL ServerSQL Server. 默认情况下,将启用用于错误报告的选项。By default, options for error reporting is enabled.

  18. “完整映像规则” 页上,系统配置检查器将运行完整的映像规则,以便使用您所指定的 SQL ServerSQL Server 配置来验证您的计算机配置。On the Complete Image Rules page, the System Configuration Checker will run the complete image rules to validate your computer configuration with the SQL ServerSQL Server configurations that you have specified. 您可以通过单击 “显示详细信息” 在屏幕上查看详情,或通过单击 “查看详细报告” 从而以 HTML 报告的形式进行查看。You can view the details on the screen by clicking Show Details, or as an HTML report by clicking View detailed report.

  19. “已准备好完成映像” 页显示您在安装过程中指定的安装选项的树视图。The Ready to Complete Image page shows a tree view of installation options that were specified during Setup. 若要继续,请单击 “安装”To continue, click Install.

  20. 在安装过程中, “完成映像进度” 页会提供相应的状态,因此您可以在安装过程中监视安装进度。During installation, the Complete Image Progress page provides status so that you can monitor installation progress as Setup continues.

  21. 安装完成后, “完成” 页会提供指向安装摘要日志文件以及其他重要说明的链接。After installation, the Complete page provides a link to the summary log file for the installation and other important notes. 若要完成 SQL ServerSQL Server 安装过程,请单击 “关闭”To complete the SQL ServerSQL Server installation process, click Close.

  22. 如果安装程序指示您重新启动计算机,请立即重新启动。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. 有关详细信息,请参阅 View and Read SQL Server Setup Log FilesFor more information, see View and Read SQL Server Setup Log Files.

  23. 此步骤完成 SQL ServerSQL Server 的已准备实例的配置并且您已完成 SQL ServerSQL Server的安装。This step completes the configuration of the prepared instance of SQL ServerSQL Server and you have completed the installation of SQL ServerSQL Server.

Add Features to a Prepared InstanceAdd Features to a Prepared Instance

SQL ServerSQL ServerAdd Features to a Prepared Instance of SQL ServerSQL Server

  1. 插入 SQL ServerSQL Server 安装介质,Insert the SQL ServerSQL Server installation media. 然后双击根文件夹中的 Setup.exe。From the root folder, double-click Setup.exe. 若要从网络共享进行安装,请找到共享中的根文件夹,然后双击 Setup.exe。To install from a network share, locate the root folder on the share, and then double-click Setup.exe.

  2. 安装向导将运行 SQL ServerSQL Server 安装中心。The Installation Wizard runs the SQL ServerSQL Server Installation Center. 若要向 SQL ServerSQL Server 的已准备实例添加功能,请单击“高级”页上的“SQL ServerSQL Server 的独立实例的映像准备”。To add features to a prepared instance of SQL ServerSQL Server, click Image preparation of a stand-alone instance of SQL ServerSQL Server on the Advanced page.

  3. 系统配置检查器将在您的计算机上运行发现操作。The System Configuration Checker runs a discovery operation on your computer. 若要继续,请单击 “确定”To continue, click OK. 您可以通过单击 “显示详细信息” 在屏幕上查看详情,或通过单击 “查看详细报告” 从而以 HTML 报告的形式进行查看。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 Setup Support Files page, click Install to install the Setup support files.

  5. 在“准备映像类型”页上,选择“向 SQL ServerSQL Server 的现有已准备实例中添加功能”选项。On the Prepare Image Type page, select Add features to an existing prepared instance of SQL ServerSQL Server option. 从可用的已准备实例的下拉列表中,选择要将功能添加到的特定的已准备实例。Select the specific prepared instance you want to add features to from the drop down list of available prepared instances.

  6. “功能选择” 页上,指定要添加到指定的已准备实例的功能。On the Feature Selection page, specify the features you want to add to the specified prepared instance.

    在右侧窗格中显示所选功能的必备组件。The prerequisites for the selected features are displayed on the right-hand pane. SQL ServerSQL Server 安装程序将在本过程后面所述的安装步骤中安装尚未安装的必备组件。Setup will install the prerequisite that are not already installed during the installation step described later in this procedure.

  7. “准备映像规则” 页上,系统配置检查器将在安装继续之前验证计算机的系统状态。On the Prepare Image Rules page, the System Configuration Checker verifies the system state of your computer before Setup continues. 您可以通过单击 “显示详细信息” 在屏幕上查看详情,或通过单击 “查看详细报告” 从而以 HTML 报告的形式进行查看。You can view the details on the screen by clicking Show Details, or as an HTML report by clicking View detailed report.

  8. “磁盘空间要求”页将计算指定的功能所需的磁盘空间,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.

  9. “准备映像规则” 页上,系统配置检查器将运行准备映像规则,以便使用您所指定的 SQL ServerSQL Server 功能验证您的计算机配置。On the Prepare Image Rules page, the System Configuration Checker will run prepare image rules to validate your computer configuration with the SQL ServerSQL Server features that you have specified. 您可以通过单击 “显示详细信息” 在屏幕上查看详情,或通过单击 “查看详细报告” 从而以 HTML 报告的形式进行查看。You can view the details on the screen by clicking Show Details, or as an HTML report by clicking View detailed report.

  10. “已可以准备映像” 页显示您在安装过程中指定的安装选项的树视图。The Ready to Prepare Image page shows a tree view of installation options that were specified during Setup. 若要继续,请单击 “安装”To continue, click Install. SQL ServerSQL Server 安装程序将首先安装所选功能的必备组件,然后安装所选功能。Setup will first install the required prerequisites for the selected features followed by the feature installation.

  11. 在安装过程中, “准备映像进度” 页会提供相应的状态,因此您可以在安装过程中监视安装进度。During installation, the Prepare Image Progress page provides status so that you can monitor installation progress as Setup continues.

  12. 安装完成后, “完成” 页会提供指向安装摘要日志文件以及其他重要说明的链接。After installation, the Complete page provides a link to the summary log file for the installation and other important notes. 若要完成 SQL ServerSQL Server 安装过程,请单击 “关闭”To complete the SQL ServerSQL Server installation process, click Close.

  13. 如果安装程序指示您重新启动计算机,请立即重新启动。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. 有关详细信息,请参阅 查看和读取 SQL Server 安装程序日志文件For more information, see View and Read SQL Server Setup Log Files.

从已准备实例删除功能Remove Features from a Prepare Instance

SQL ServerSQL ServerRemoving features from a prepared instance of SQL ServerSQL Server

  1. 若要开始卸载过程,请从 “开始” 菜单单击 “控制面板” ,然后双击 “程序和功能”To begin the uninstall process, from the Start menu click Control Panel and double click Program and Features.

  2. 双击要卸载的 SQL ServerSQL Server 组件,再单击 “删除”Double click the SQL ServerSQL Server component to uninstall and click Remove.

  3. 将运行安装程序支持规则以验证您的计算机配置。Setup support rules will run to verify your computer configuration. 单击 “确定” 继续。Click OK to continue.

  4. “选择实例” 页中,选择要修改的已准备实例。On the Select Instance page, select the prepared instance you want to modify. 已准备实例的名称将显示为“未配置 PreparedInstanceID”,其中 PreparedInstanceID 是您选择的实例。The name of the prepared instance will be displayed as "Unconfigured PreparedInstanceID" where PreparedInstanceID is the instance you select.

  5. “选择功能” 页上,指定要从指定的 SQL ServerSQL Server 实例中删除的功能。On the Select Features page, specify the features to remove from the SQL ServerSQL Server instance you specified. 单击 “下一步” 继续。Click Next to continue.

  6. 将运行删除规则以验证是否可以成功完成删除操作。Removal rules will run to verify that the operation can complete successfully.

  7. “准备删除” 页上查看要卸载的组件和功能的列表。On the Ready to Remove page, review the list of components and features that will be uninstalled.

  8. “删除进度” 页将显示该操作的状态。The Remove Progress page will display the status of the operation.

  9. “完成” 页上可以查看操作的完成状态。On the Complete page you can review the completion status of the operation. 单击 “关闭” 以退出安装向导。Click close to exit the installation wizard.

卸载已准备实例Uninstalling a Prepared Instance

卸载 SQL ServerSQL ServerUninstall a prepared instance of SQL ServerSQL Server

  1. 若要开始卸载过程,请从 “开始” 菜单单击 “控制面板” ,然后双击 “程序和功能”To begin the uninstall process, from the Start menu click Control Panel and double click Program and Features.

  2. 双击要卸载的 SQL ServerSQL Server 组件,再单击 “删除”Double click the SQL ServerSQL Server component to uninstall and click Remove.

  3. 将运行安装程序支持规则以验证您的计算机配置。Setup support rules will run to verify your computer configuration. 单击 “确定” 继续。Click OK to continue.

  4. “选择实例” 页中,选择要修改的已准备实例。On the Select Instance page, select the prepared instance you want to modify. 已准备实例的名称将显示为“未配置 PreparedInstanceID”,其中 PreparedInstanceID 是您选择的实例。The name of the prepared instance will be displayed as "Unconfigured PreparedInstanceID" where PreparedInstanceID is the instance you select.

  5. “选择功能” 页上,指定要从指定的 SQL ServerSQL Server 实例中删除的功能。On the Select Features page, specify the features to remove from the SQL ServerSQL Server instance you specified. 单击 “下一步” 继续。Click Next to continue.

  6. “删除规则” 页上,安装程序将运行规则以验证是否可以成功完成操作。On the Removal Rules page, Setup will run rules to verify that the operation can complete successfully.

  7. “准备删除” 页上查看要卸载的组件和功能的列表。On the Ready to Remove page, review the list of components and features that will be uninstalled.

  8. “删除进度” 页将显示该操作的状态。The Remove Progress page will display the status of the operation.

  9. “完成” 页上可以查看操作的完成状态。On the Complete page you can review the completion status of the operation. 单击 “关闭” 以退出安装向导。Click close to exit the installation wizard.

  10. 重复步骤 1 到 9,直到删除所有 SQL Server 2017SQL Server 2017 组件。Repeat steps 1 to 9 until all components of SQL Server 2017SQL Server 2017 have been removed.

修改或卸载 SQL ServerSQL Server的已完成实例。Modifying or Uninstalling a Completed Instance of SQL ServerSQL Server.

添加或删除功能或者卸载 SQL ServerSQL Server 的已完成实例的过程类似于 SQL ServerSQL Server的已安装实例的过程。The process to add or remove features or to uninstall a completed instance of SQL ServerSQL Server is similar to the process to an installed instance of SQL ServerSQL Server. 有关详细信息,请参阅以下文章:For more information, see the following articles:

另请参阅See Also

什么是 Windows SysPrep What is Windows SysPrep
Windows SysPrep 工作原理How does Windows SysPrepWork