使用 SysPrep 安裝 SQL Server 的考量Considerations for Installing SQL Server Using SysPrep

[SQL Server]SQL Server SysPrep 可讓您在電腦上準備 [SQL Server]SQL Server 的獨立執行個體,並於稍後完成設定。SysPrep allows you to prepare a stand-alone instance of [SQL Server]SQL Server on a computer and to complete the configuration at a later time. [SQL Server]SQL Server SysPrep 需要使用包含兩個步驟的程序來取得已設定的 [SQL Server]SQL Server獨立執行個體。SysPrep involves a two-step process to get to a configured stand-alone instance of [SQL Server]SQL Server. 這些步驟包含以下內容:The steps include the following:

  • 準備映像Prepare Image

    這個步驟會在安裝產品二進位編碼檔案之後停止安裝程序,而不會針對正在準備的 [SQL Server]SQL Server 執行個體設定電腦、網路或帳戶特有的資訊。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]SQL Server that is being prepared.

  • 完成映像Complete Image

    這個步驟可讓您完成已備妥之 [SQL Server]SQL Server執行個體的組態。This step enables you to complete the configuration of a prepared instance of [SQL Server]SQL Server. 在此步驟中,您可以提供電腦、網路和帳戶特有的資訊。During this step, you can provide the computer, network, and account-specific information.

如需有關如何安裝[SQL Server]SQL Server使用 SysPrep,請參閱SysPrep 安裝 SQL Server 2014 使用For more information about how to install [SQL Server]SQL Server using SysPrep, see Install SQL Server 2014 Using SysPrep.

[SQL Server]SQL Server SysPrep 的常見用法Common Uses for [SQL Server]SQL Server SysPrep

您可依照下列任何方法使用 [SQL Server]SQL Server SysPrep 功能:You can use the [SQL Server]SQL Server SysPrep capability in any of the following ways:

  • 您可以使用「準備映像」步驟,在同一部電腦上準備一個或多個未設定的 [SQL Server]SQL Server 執行個體。By using the Prepare Image step, you can prepare one or more unconfigured instances of [SQL Server]SQL Server on the same computer. 您可以在同一部電腦上使用完整的映像步驟來設定這些備妥的執行個體。You can configure these prepared instances by using the Complete Image step on the same computer.

  • 您可以擷取備妥之執行個體的 [SQL Server]SQL Server 安裝程式組態檔,並將它用於準備多部電腦上的其他未設定的 [SQL Server]SQL Server 執行個體,以供日後組態設定使用。You can capture the [SQL Server]SQL Server Setup configuration file of the prepared instance and use it to prepare additional unconfigured [SQL Server]SQL Server instances on multiple computers for later configuration.

  • 當結合 Windows 系統準備工具 (也稱為 Windows SysPrep) 時,您可以建立作業系統的映像,包括來源電腦上未設定的已備妥 [SQL Server]SQL Server 執行個體。In combination with the Windows System Preparation tool (also known as Windows SysPrep); you can create an image of the operating system including the unconfigured prepared instances of [SQL Server]SQL Server on the source computer. 然後,您可以將作業系統映像部署到多部電腦上。You can then deploy the operating system image to multiple computers. 當您完成作業系統的組態之後,可以使用 [SQL Server]SQL Server 安裝程式的「完成映像」步驟來設定備妥的執行個體。After you complete the configuration of the operating system, you can configure the prepared instances by using the Complete Image step of [SQL Server]SQL Server Setup.

    Windows SysPrep 工具可用來準備 Windows 作業系統映像,The Windows SysPrep tool is used to prepare Windows operating system images. 其目的是為了擷取作業系統的自訂映像,以供整個組織部署。It is used to capture a customized image of the operating system for deployment throughout an organization. 如需有關 SysPrep 及其用途的詳細資訊,請參閱< 什麼是 Sysprep?>。For more information about SysPrep and its uses, see What is SysPrep.

安裝媒體考量Installation Media Considerations

如果您使用完整版的 [SQL Server]SQL Server,請考量以下事項:If you are using a full version of [SQL Server]SQL Server, consider the following:

  • [SQL Server]SQL Server的非 Express 版:Non-Express editions of [SQL Server]SQL Server:

    • 「準備映像」步驟會使用 [SQL Server]SQL Server Evaluation Edition 來安裝產品二進位編碼檔案。The Prepare Image step uses [SQL Server]SQL Server Evaluation edition to install the product binaries. 當此執行個體完成時, [SQL Server]SQL Server 的版本取決於「完成映像」步驟中所提供的產品識別碼。When the instance is completed, the edition of [SQL Server]SQL Server depends on the product ID provided during the complete image step.

    • 如果您提供 Evaluation Edition 產品識別碼,評估期間將會在備妥的執行個體完成後的 180 天到期。If you provide an Evaluation edition product ID, the evaluation period is set to expire 180 days after the prepared instance is completed.

  • [SQL Server]SQL ServerExpress 版:Express editions of [SQL Server]SQL Server:

    • 若要準備 [SQL Server]SQL Server Express 版本的執行個體,請使用 Express 安裝媒體。To prepare an instance of [SQL Server]SQL Server Express editions, use the Express installation media.

    • 您不能指定備妥之 [SQL Server]SQL Server Express 版本執行個體的產品識別碼。You cannot specify Product IDs for a prepared instance of [SQL Server]SQL Server Express editions.

支援的 [SQL Server]SQL Server 安裝Supported [SQL Server]SQL Server Installations

SQL Server 2014SQL Server 2014 的 SysPrep 支援所有功能,包括 [SQL Server]SQL Server的工具。SysPrep in SQL Server 2014SQL Server 2014 supports all features, including tools, of [SQL Server]SQL Server.

您可以針對 SQL Server 2014SQL Server 2014 或之前版本的並存安裝準備多個執行個體。You can prepare multiple instances for side-by-side installations of SQL Server 2014SQL Server 2014 or earlier versions. 這些執行個體的功能必須支援 SysPrep。The features of these instances must support SysPrep.

當準備映像步驟結束時,將會自動安裝及完成 [SQL Server]SQL Server Native Client。The [SQL Server]SQL Server Native Client is automatically installed and completed at the end of the prepare image step.

[SQL Server]SQL Server 當您準備 [SQL Server]SQL Server 的執行個體時,也會自動準備瀏覽器與 [SQL Server]SQL Server寫入器。Browser and [SQL Server]SQL Server Writer are automatically prepared when you prepare an instance of [SQL Server]SQL Server. 當您在完成映像步驟中完成 [SQL Server]SQL Server 執行個體時,便會完成這兩個項目。They are completed when you complete the [SQL Server]SQL Server instance by using the Complete Image step.

如需有關支援的版本資訊[SQL Server]SQL Server,請參閱 < 支援的 SQL Server 2014 的版本功能For information about supported editions of [SQL Server]SQL Server, see Features Supported by the Editions of SQL Server 2014.

您可以執行版本升級,同時設定備妥的 [SQL Server]SQL Server執行個體。You can perform an edition upgrade while configuring a prepared instance of [SQL Server]SQL Server. [SQL Server]SQL Server Express 版本不支援這個選項。This option is not supported for [SQL Server]SQL Server Express editions.

SQL Server 2014SQL Server 2014開始, [SQL Server]SQL Server SysPrep 支援從命令列進行 [SQL Server]SQL Server 容錯移轉叢集安裝。Beginning in SQL Server 2014SQL Server 2014, [SQL Server]SQL Server SysPrep supports [SQL Server]SQL Server failover cluster installations from the command line.

[SQL Server]SQL Server SysPrep 限制SysPrep Limitations

不支援修復備妥的執行個體。Repairing a prepared instance is not supported. 如果安裝程式在準備映像或完成映像步驟期間失敗,您必須執行解除安裝。If Setup fails during the Prepare Image or Complete Image step, you must run uninstall.

準備映像Prepare Image

準備映像步驟會安裝 [SQL Server]SQL Server 產品和功能,但不會設定安裝。The Prepare Image step installs the [SQL Server]SQL Server product and features but does not configure the installation.

您可以在這個步驟中,指定要安裝的 [SQL Server]SQL Server 功能及 [SQL Server]SQL Server 產品安裝檔的安裝位置。The [SQL Server]SQL Server features to be installed and the installation location for [SQL Server]SQL Server product installation files can be specified during this step. 若要準備 [SQL Server]SQL Server 的執行個體,可以在 [安裝中心] 的 [進階] 頁面上透過 [Image Preparation of a stand-alone instance for SysPrep deployment (準備 SysPrep 部署獨立執行個體的映像)] 或是從命令提示字元執行。You can prepare an instance of [SQL Server]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.

  • 您可以在同一部電腦上準備多個可於稍後完成的 [SQL Server]SQL Server 執行個體。You can prepare multiple instances of [SQL Server]SQL Server on the same computer that can be completed later.

  • 您可以從現有的已備妥 [SQL Server]SQL Server執行個體中,新增或移除 SysPrep 安裝所支援的功能。You can add or remove features that are supported for SysPrep installations from the existing prepared instances of [SQL Server]SQL Server.

當準備好執行個體之後,就可以使用 [開始] 功能表上的捷徑,讓您完成已備妥之 [SQL Server]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]SQL Server.

完成映像Complete Image

您可以使用下列其中一個方法,完成已備妥的 [SQL Server]SQL Server 執行個體:You can complete the prepared instances of [SQL Server]SQL Server by using either of the following methods:

  • 使用 [開始] 功能表上的捷徑。Use the shortcut on the Start menu.

  • 在 [安裝中心] 的 [進階] 頁面上存取 [Image completion of a prepared stand-alone instance (完成備妥之獨立執行個體的映像)] 步驟。Access the Image completion of a prepared stand-alone instance step on the Advanced page of the Installation Center.

另請參閱See Also

規劃 SQL Server 安裝Planning a SQL Server Installation