Microsoft Command Line Utilities 15 for SQL Server Silent Install (How-To Guide)


The SQLCMD utility allows users to connect to, send Transact-SQL batches from, and output rowset information from SQL Server instances. The bcp utility bulk copies data between an instance of Microsoft SQL Server and a data file in a user-specified format. The bcp utility can be used to import large numbers of new rows into SQL Server tables or to export data out of tables into data files. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of the Microsoft Command Line Utilities 15 for SQL Server from the command line using the MSI installer.

How to Install Microsoft Command Line Utilities 15 for SQL Server Silently

Microsoft Command Line Utilities 15 for SQL Server Silent Install (MSI) on 32-bit Systems

  1. Navigate to: https://docs.microsoft.com/en-us/sql/tools/bcp-utility?view=sql-server-ver16
  2. Select Download x86 installer link
  3. Download the MsSqlCmdLnUtils.msi to a folder created at (C:\Downloads\x86)
  4. Navigate to: https://docs.microsoft.com/en-us/sql/connect/odbc/windows/release-notes-odbc-sql-server-windows?view=sql-server-ver15
  5. Select Download x86 installer link
  6. Download the msodbcsql.msi to a folder created at (C:\Downloads\x86)
  7. Navigate to: https://aka.ms/vs/17/release/vc_redist.x86.exe
  8. Download the VC_redist.x86.exe to a folder created at (C:\Downloads\x86)
  9. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  10. Navigate to the C:\Downloads\x86 folder
  11. Enter the following commands:
VC_redist.x86.exe /install /quiet /norestart
MsiExec.exe /i msodbcsql.msi IACCEPTMSODBCSQLLICENSETERMS=YES /qn
MsiExec.exe /i MsSqlCmdLnUtils.msi IACCEPTMSSQLCMDLNUTILSLICENSETERMS=YES /qn

After a few moments you will find Microsoft Command Line Utilities 15 for SQL Server entries in the Installation Directory and Programs and Features in the Control Panel.

Software Title:Microsoft Command Line Utilities 15 for SQL Server
Vendor:Microsoft Corporation
Version:15.0
Architecture:32-bit
Installer Type:MSI
Silent Install Switch (Step1)VC_redist.x86.exe /install /quiet /norestart
Silent Install Switch (Step2)MsiExec.exe /i msodbcsql.msi IACCEPTMSODBCSQLLICENSETERMS=YES /qn
Silent Install Switch (Step3)MsiExec.exe /i MsSqlCmdLnUtils.msi IACCEPTMSSQLCMDLNUTILSLICENSETERMS=YES /qn
Silent Uninstall Switch:MsiExec.exe /x {0ECDC065-10AE-419A-AB59-E9894B22595E} /qn
Repair Command:MsiExec.exe /fa {0ECDC065-10AE-419A-AB59-E9894B22595E} /qn
Download Link:https://docs.microsoft.com/en-us/sql/tools/bcp-utility?view=sql-server-ver16
PowerShell Script:https://silentinstallhq.com/microsoft-command-line-utilities-15-for-sql-server-install-and-uninstall-powershell/
Detection Script:https://silentinstallhq.com/create-a-custom-detection-script-for-microsoft-command-line-utilities-for-sql-server-powershell/

Microsoft Command Line Utilities 15 for SQL Server Silent Install (MSI) on 64-bit Systems

  1. Navigate to: https://docs.microsoft.com/en-us/sql/tools/bcp-utility?view=sql-server-ver16
  2. Select Download x64 installer link
  3. Download the MsSqlCmdLnUtils.msi to a folder created at (C:\Downloads\x64)
  4. Navigate to: https://docs.microsoft.com/en-us/sql/connect/odbc/windows/release-notes-odbc-sql-server-windows?view=sql-server-ver15
  5. Select Download x64 installer link
  6. Download the msodbcsql.msi to a folder created at (C:\Downloads\x64)
  7. Navigate to: https://aka.ms/vs/17/release/vc_redist.x64.exe
  8. Download the VC_redist.x64.exe to a folder created at (C:\Downloads\x64)
  9. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  10. Navigate to the C:\Downloads\x64 folder
  11. Enter the following commands:
VC_redist.x64.exe /install /quiet /norestart
MsiExec.exe /i msodbcsql.msi IACCEPTMSODBCSQLLICENSETERMS=YES /qn
MsiExec.exe /i MsSqlCmdLnUtils.msi IACCEPTMSSQLCMDLNUTILSLICENSETERMS=YES /qn

After a few moments you will find Microsoft Command Line Utilities 15 for SQL Server entries in the Installation Directory and Programs and Features in the Control Panel.

Microsoft SQL Server 2019 Express S...
Microsoft SQL Server 2019 Express Silent Install (How-To Guide)
Software Title:Microsoft Command Line Utilities 15 for SQL Server
Vendor:Microsoft Corporation
Version:15.0
Architecture:64-bit
Installer Type:MSI
Silent Install Switch (Step1)VC_redist.x64.exe /install /quiet /norestart
Silent Install Switch (Step2)MsiExec.exe /i msodbcsql.msi IACCEPTMSODBCSQLLICENSETERMS=YES /qn
Silent Install Switch (Step3)MsiExec.exe /i MsSqlCmdLnUtils.msi IACCEPTMSSQLCMDLNUTILSLICENSETERMS=YES /qn
Silent Uninstall Switch:MsiExec.exe /x {EDA3FABE-E481-4E69-A7B0-E845DF0FEC22} /qn
Repair Command:MsiExec.exe /fa {EDA3FABE-E481-4E69-A7B0-E845DF0FEC22} /qn
Download Link:https://docs.microsoft.com/en-us/sql/tools/bcp-utility?view=sql-server-ver16
PowerShell Script:https://silentinstallhq.com/microsoft-command-line-utilities-15-for-sql-server-install-and-uninstall-powershell/
Detection Script:https://silentinstallhq.com/create-a-custom-detection-script-for-microsoft-command-line-utilities-for-sql-server-powershell/

The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download links provided take you directly to the vendors website. Continue reading if you are interested in additional details and configurations.


Additional Configurations

Create a Microsoft Command Line Utilities 15 for SQL Server Installation Log File

The Microsoft Command Line Utilities 15 for SQL Server installer offers the option to generate a log file during installation to assist with troubleshooting should any problems arise. You can use the following commands to create a verbose log file with details about the installation.

Microsoft Command Line Utilities 15 for SQL Server Silent Install with Logging on 32-bit System

VC_redist.x86.exe /install /quiet /norestart /log "%WINDIR%\Temp\VC2022x86-Install.log"
MsiExec.exe /i msodbcsql.msi IACCEPTMSODBCSQLLICENSETERMS=YES /qn /L*v "%WINDIR%\Temp\MSODBCSQL17x86-Install.log"
MsiExec.exe /i MsSqlCmdLnUtils.msi IACCEPTMSSQLCMDLNUTILSLICENSETERMS=YES /qn /L*v "%WINDIR%\Temp\MsSqlCmdLnUtilsx86-Install.log"

Microsoft Command Line Utilities 15 for SQL Server Silent Install with Logging on 64-bit System

VC_redist.x64.exe /install /quiet /norestart /log "%WINDIR%\Temp\VC2022x64-Install.log"
MsiExec.exe /i msodbcsql.msi IACCEPTMSODBCSQLLICENSETERMS=YES /qn /L*v "%WINDIR%\Temp\MSODBCSQL17x64-Install.log"
MsiExec.exe /i MsSqlCmdLnUtils.msi IACCEPTMSSQLCMDLNUTILSLICENSETERMS=YES /qn /L*v "%WINDIR%\Temp\MsSqlCmdLnUtilsx64-Install.log"

How to Uninstall Microsoft Command Line Utilities 15 for SQL Server Silently

Check out the following posts for a scripted solution:

Microsoft Command Line Utilities 15 for SQL Server Install and Uninstall (PowerShell)
Microsoft Command Line Utilities 15 for SQL Server Silent Uninstall (PowerShell)
  1. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  2. Enter one of the following commands:

Microsoft Command Line Utilities 15 for SQL Server Silent Uninstall on 32-bit Systems

MsiExec.exe /x {0ECDC065-10AE-419A-AB59-E9894B22595E} /qn

Microsoft Command Line Utilities 15 for SQL Server Silent Uninstall on 64-bit Systems

MsiExec.exe /x {EDA3FABE-E481-4E69-A7B0-E845DF0FEC22} /qn

Always make sure to test everything in a development environment prior to implementing anything into production. The information in this article is provided “As Is” without warranty of any kind.

Recent Posts