共用方式為


Create an offline installation of SQL Server Management Studio 21 Preview

適用於:SQL ServerAzure SQL 資料庫Azure SQL 受控執行個體Azure Synapse Analytics

SQL Server Management Studio 21 Preview is designed to work well in various computer configurations. In this article, you learn how to create an offline installation package of files for installation on the local machine.

Use the "Download all, then install" feature

Sometimes online access is problematic. For example, you might have an unreliable internet connection or your internet connection might have low bandwidth. For situations like these, you have other methods available for acquiring SQL Server Management Studio (SSMS). You can use the Download all, then install feature from the Visual Studio Installer to download an installation package on the local machine before you install it locally, or you can use the command line to create a local installation package to install locally later.

After you download the bootstrapper, run it to install SSMS. It first installs and then launches the latest version of the Visual Studio Installer, which you can use to customize and configure your installation, download installation packages, and install the product.

To complete downloading the product before installation starts, select the Download all, then install option in the dropdown list at the bottom of the default Workloads tab of the Visual Studio Installer. The purpose of this feature is to download the SSMS packages in advance on the computer where SSMS is eventually installed. By downloading the packages locally first, you can then safely disconnect from the internet before you install SSMS.

Use the command line to create a local layout

Step 1 - Download the SSMS bootstrapper

Download the correct bootstrapper for the version of SSMS you want, and copy it into the directory you want to use as the source location for your local layout. The bootstrapper is the executable you use to create, update, or modify your local layout. 您必須有因特網連線才能完成此步驟。

Step 2 - Create a local layout

Open a command prompt with administrator privileges, navigate to the directory where you downloaded the bootstrapper, and use the bootstrapper's parameters to create your local layout. 您必須有因特網連線才能完成此步驟。

您可以將 en-US 變更為 清單中的語言地區設定,以安裝英文以外的語言,並且可以使用 清單中的元件標識碼,進一步自定義您的本機配置。

To create a complete local layout for SQL Server Management Studio, run:

vs_ssms.exe --layout c:\localSSMSlayout --add Microsoft.Component.HelpViewer

啟動載入器完成下載配置檔案之後,可以將本機配置資料夾移至您想要安裝 SQL Server Management Studio 的任何其他電腦或環境,而不需要因特網連線。

備註

Make sure that your full installation path is less than 80 characters and that your machine has ample storage. SQL Server Management Studio requires a minimum of 4-GB of disk space. For more information, see System requirements for SQL Server Management Studio 21 Preview.

Step 3 - Install SSMS from the local layout

When you install SSMS from a local layout, the Visual Studio Installer uses the local versions of the files. If you select components during installation that aren't in the layout, then the Visual Studio Installer attempts to download them from the internet. To make sure you install only the files you previously downloaded, use the same command-line options you used to create the local layout. 若要確定您的安裝程式在安裝產品時不會嘗試存取因特網,請使用 --noweb 參數。

例如,如果您使用步驟 2 的命令建立本機安裝配置,請使用下列命令來執行安裝,並防止用戶端電腦存取因特網:

c:\localSSMSlayout\vs_ssms.exe --noWeb --add Microsoft.Component.HelpViewer

支援或疑難解答

有時候,事情可能會出錯。 如果您的 SSMS 安裝失敗,請參閱 SQL Server Management Studio 21 Preview 的安裝和升級問題疑難解答,以獲得逐步指引。

您可以參考 SSMS 開發人員社群 網站以取得其他已知問題(篩選 群組下的 工具],並提供意見反應給產品小組。