只適用於SQL Server - 僅限 Windows。
流式安裝是將累積更新 (CU) 整合到 SQL Server 安裝程式中的程式。 此方法可確保在單一作業中安裝 SQL Server 的最新修正程式和改善項目,而不需要安裝後修補程式。
滑流適用於:
避免基本媒體中的已知設定問題
透過在一次作業中執行安裝和修補,並協助避免額外的作業系統重新啟動,減少部署時間和手動工作。
滑流的運作方式
在安裝期間,您可以使用參數執行 /UpdateEnabled=True SQL Server 安裝以啟用更新整合,並使用 /UpdateSource指定包含所需 CU 的資料夾。
例如:
setup.exe /Action=Install /UpdateEnabled=True /UpdateSource="C:\SQLUpdates"
此範例命令列作業會告知安裝程式使用指定資料夾中的更新二進位檔,而不是原始基底媒體,並在安裝程式期間套用它們。
滑流使用指南
您應該將最新的累積更新整合到安裝媒體中,以確保執行個體以最穩定且安全的組態啟動。
在部署至生產環境之前,先在預備環境中測試滑流安裝。
在環境中的所有伺服器上使用一致的更新套件,以確保相容性。
如果稍後新增功能,請使用相符的安裝媒體,或將相同的累積更新套用至現有執行個體。
何時使用滑流
您設定新的 SQL Server 執行個體,並希望在安裝期間修補它們,以避免不必要的重新啟動。
您在使用基本安裝媒體時遇到安裝失敗,並且需要修補的安裝二進位檔。
您在多部電腦上部署 SQL Server,並想要一致、可靠的體驗。
滑流安裝步驟
步驟 1:建立資料夾來儲存 SQL 更新
建立本機資料夾來儲存更新檔案。 例如:
New-Item -ItemType "Directory" -Path "C:\SQLUpdates" -Force
第 2 步:下載最新更新
將您 SQL Server 版本的最新 累積更新 下載到新建立的資料夾中。
步驟 3:使用滑流參數執行安裝程式
使用下列命令執行 SQL Server 安裝程式:
C:\SqlSetupMedia\setup.exe /Action=Install /UpdateEnabled=True /UpdateSource="C:\SQLUpdates"
| 參數 | Description |
|---|---|
/Action=Install |
告知 SQL Server 安裝程式啟動安裝程式。 如果您省略此參數,則「安裝程式」只會開啟「安裝中心」,並忽略其他參數,例如更新路徑。 |
/UpdateEnabled=True |
啟用更新偵測。 它會告知安裝程式在安裝期間尋找並包含任何可用的更新 (例如累積更新)。 |
/UpdateSource=<location> |
指向儲存更新檔案 (CU) 的資料夾。 |
如需安裝參數的詳細資訊,請參閱 從命令提示字元在 Windows 上安裝和設定 SQL Server
第 4 步:完成設置
像往常一樣繼續進行設置嚮導。
在安裝期間,您會看到已整合更新的確認。
步驟 5:驗證安裝成功
安裝後,應用的 CU 將顯示在:
程序和功能>已安裝的更新 (從 Windows 開始功能表)
設定記錄 (
Summary.txt) 下的Patch Level。 如需詳細資訊,請參閱 檢視和讀取 SQL Server 安裝程式記錄檔。Overall summary: Final result: Passed Exit code (Decimal): 0 Start time: 2025-08-17 11:55:45 End time: 2025-08-17 12:14:24 Requested action: Install Machine Properties: Machine name: <machine-name> Machine processor count: 8 OS version: Microsoft Windows Server 2019 Standard (10.0.17763) OS service pack: OS region: United States OS language: English (United States) OS architecture: X64 Process architecture: 64 Bit OS clustered: No Product features discovered: Product Instance Instance ID Feature Language Package properties: Description: Microsoft SQL Server 2019 ProductName: SQL Server 2019 Type: RTM Version: 15 Installation location: C:\SQL Server\SQL 2019\SQLFull_ENU\x64\setup\ Installation edition: Enterprise Edition: Core-based Licensing Slipstream: True SP Level 0 Patch Level: 15.0.4430.1 Product Update Status: Success: KB 5054833 Product Updates Selected for Installation: Title: Hotfix Pack Knowledge Base Article: KB 5054833 Version: 15.0.4430.0 Architecture: x64 Language: All Update Source: C:\SQL Server\SQL 2019\SQLFull_ENU\CU
如何識別滑流裝置
若要確認滑流已用於執行安裝程式:
設定精靈會顯示規則,例如:
Update Setup Media Language Rule安裝日誌包括以下行:
Slipstream: True SP Level 0 Patch Level: 15.0.4430.1執行 SQL Server 功能探索報告 以驗證版本層級。
備註
如果安裝程式失敗,請檢閱位於 的<nn>記錄檔C:\Program Files\Microsoft SQL Server\<nn>\Setup Bootstrap\Log\Summary.txt中的失敗詳細資料,其中 是您要安裝的版本。 如需詳細資訊,請參閱 檢視和讀取 SQL Server 安裝程式記錄檔。
以下是滑流安裝失敗的範例。
Overall summary:
Final result: Failed: see results below
Exit code (Decimal): -2068643839
Start time: 2025-08-17 09:55:12
End time: 2025-08-17 10:03:01
Requested action: Install
Setup completed with required actions for features.
Troubleshooting information for those features:
Next step for SQLEngine: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
滑流並不能消除安裝後監控未來更新的需要。