How to install Sql Server Data Tools (SSDT) 2017 Offline (Internal Network installation)
Published Feb 10 2019 05:24 PM 122K Views
Microsoft

First published on MSDN on Jun 21, 2018

 

Before you begin:

The official SQL Server SSDT offline installation DOC on SQL 2017 contains updated information on these steps. I am keeping this blog as a reference at this point, though it is updated as well

 

 

Here is a request that came up recently:

"When installing SSDT manually it downloads a shell copy of Visual Studio 2017 from the Internet. However, if I get the offline copy of SSDT for VS2017 it does not include the Shell copy of VS2017 so the install fails because no Visual Studio 2017 instance is present. I need this for an internal network installation either via SCCM or wide unattended distribution."


This request makes sense for a lot of large enterprises where internet access may be restricted for security considerations.

Steps to accomplish this:

The overall approach is to download the required files on a computer that does have internet access. Then later use those bits on an internal network to install on multiple computers that do not have internet access.

1. Download SSDT standalone installer for VS 2017 (pick a language of your choice from the list) 

2. Download   Visual Studio Shell (vs_sql.exe)  also known as VS SQL SKU 

 

3. From a Command Prompt go to the folder where vs_sql.exe was downloaded and execute the following command on a machine with internet connection so you can download all the bits required for a later use offline. Using the --layout option is the key. For more details, see https://docs.microsoft.com/en-us/visualstudio/install/create-a-network-installation-of-visual-studi...

 

 

 

 

 

 

vs_sql.exe --layout c:\vs2017offline --lang en-US

 

 

 

 

 

 

Note: Above is for US English only ~1GB of files as an example.

 

3.1 If you need ALL languages downloaded you can use this command

 

 

 

 

 

 

vs_sql.exe --layout c:\vs2017offline

 

 

 

 

 

 

Note: all languages files add up to about ~3.9GB

4. Now, that you have all the necessary bits downloaded you can copy them to a network location or media so you can use them for offline (internal) installation

5. Next, to install offline on a machine that is not connected to the internet, run this command which will install VS2017 Shell 

 

 

 

 

 

 

vs_setup.exe --NoWeb

 

 

 

 

 

 

5.1 For no-GUI install, you can use

 

 

 

 

 

 

vs_setup.exe --NoWeb --wait --norestart --quiet

 

 

 

 

 

 

6. To install SSDT offline, run this for an interactive/GUI installation (be sure to select SSIS/SSRS/SSAS)

 

 

 

 

 

 

SSDT-Setup-ENU.exe /install

 

 

 

 

 

 

6.1 For an unattended (non-GUI) installation to all VS Instances run this command as is:

 

 

 

 

 

 

SSDT-Setup-ENU.exe /INSTALLALL[:vsinstances] /passive /log log.txt

 

 

 

 

 

 

6.2 For an unattended installation to a specific VS Instance, you can query the instance ID of the desired VS instance

 

 

 

 

 

 

c:\> cd C:\Program Files (x86)\Microsoft Visual Studio\Installer
C:\Program Files (x86)\Microsoft Visual Studio\Installer> vswhere.exe -all

 

 

 

 

 

 

  Then run this command by replacing the VS_INSTANCE_ID_HERE with your instanceID (it will look something like this: 49cf420b)

 

 

 

 

 

 

SSDT-Setup-ENU.exe /INSTALLALL[:VS_INSTANCE_ID_HERE] /passive

 

 

 

 

 

 

 

Note: For detailed command options, you can run 

 

 

 

 

 

 

SSDT-Setup-ENU.exe /help 

 

 

 

 

 

 

 

You will see on that screen the following: 

 

JosephPilov_0-1668491399783.png

 

 

 

 

Thanks to Paritosh Soni for the contribution on vswhere.exe and installing for a specific instanceID, testing and helping improve this post overall.

 

 

7 Comments
Copper Contributor
Thank you very much Joseph pilov, not only for this content related but for all the consolidated guides and troubleshootng steps under one roof in few clicks.
Copper Contributor

I am having trouble in following the steps of installing the ssdt offline...I am already done in steps 1-3.Can you please elaborate it.. sorry i am just new to this type of method

Copper Contributor

When I try to download the vsix files for SSDT it errors out for Integration Services.  Looking at another article it reference this web address to download the file, but I get the error "404 - File or directory not found"  Has Microsoft changed the download location?

  

 

 

Copper Contributor

Forgot to paste the url:  Microsoft.DataTools.IntegrationServices: https://go.microsoft.com/fwlink/?LinkId=871369

Copper Contributor

I downloaded both SSDT-Setup-ENU.exe and vs_sql.exe but always required internet for intallation. I am new this kind of installation and please i need comprehensive guide for the installation

Microsoft

Folks thanks for reporting the problem with installation. I reproduced the problem and examined the log file

 

JosephPilov_0-1634058468144.png

 

[0B9C:3BD4][2021-10-12T12:07:18]e000: Error 0x80070002: Failed attempt to download URL: 'https://go.microsoft.com/fwlink/?LinkId=874726' to: 'C:\Users\joseph\AppData\Local\Temp\{7D87F596-B564-4EC7-BABE-06EFFF5EFBBF}\VCRedist2010'
[0B9C:3BD4][2021-10-12T12:07:18]e000: Error 0x80070002: Failed to acquire payload from: 'https://go.microsoft.com/fwlink/?LinkId=874726' to working path: 'C:\Users\joseph\AppData\Local\Temp\{7D87F596-B564-4EC7-BABE-06EFFF5EFBBF}\

 

The issue is that the URL https://go.microsoft.com/fwlink/?LinkId=874726 is no longer valid.

 

Solution: 

The SSDT-Setup-ENU.exe has been updated to contain all the information inside it and is therefore a larger file. But you can follow the steps on DOCs for offline install which will allow you to proceed successfully

The instructions above have also been updated as of this Comment

Copper Contributor

@Joseph Pilov,

When I Download   Visual Studio Shell (vs_sql.exe)  also known as VS SQL SKU,

I was able to download 15.9.33801.237, However I want to download 15.9.55 for Visual Studio 2017.

 

Please help me with the steps.

 

Thank you!

Co-Authors
Version history
Last update:
‎Nov 17 2022 09:36 AM
Updated by: