Microsoft ODBC Driver for SQL Server is a single dynamic-link library (DLL) containing run-time support for applications using native-code APIs to connect to SQL Server. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of the Microsoft ODBC Driver 18 for SQL Server from the command line using the MSI installer.
How to Install Microsoft ODBC Driver 18 for SQL Server Silently
Microsoft ODBC Driver 18 for SQL Server Silent Install (MSI) on 32-bit Systems
- Navigate to: https://docs.microsoft.com/en-us/sql/connect/odbc/windows/release-notes-odbc-sql-server-windows?view=sql-server-ver15#180
- Select Download x86 installer link
- Download the msodbcsql.msi to a folder created at (C:\Downloads\x86)
- Navigate to: https://aka.ms/vs/17/release/vc_redist.x86.exe
- Download the vc_redist.x86.exe to a folder created at (C:\Downloads\x86)
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Navigate to the C:\Downloads\x86 folder
- Enter the following commands:
vc_redist.x86.exe /install /quiet /norestart |
MsiExec.exe /i msodbcsql.msi IACCEPTMSODBCSQLLICENSETERMS=YES /qn |
After a few moments you will find Microsoft ODBC Driver 18 for SQL Server entries in the Installation Directory and Programs and Features in the Control Panel.
Software Title: | Microsoft ODBC Driver 18 for SQL Server |
Vendor: | Microsoft Corporation |
Version: | 18.0 |
Architecture: | 32-bit |
Installer Type: | MSI |
Silent Install Switch (Step 1) | vc_redist.x86.exe /install /quiet /norestart |
Silent Install Switch (Step 2) | MsiExec.exe /i msodbcsql.msi IACCEPTMSODBCSQLLICENSETERMS=YES /qn |
Silent Uninstall Switch: |
|
Repair Command: |
|
Download Link: | https://docs.microsoft.com/en-us/sql/connect/odbc/windows/release-notes-odbc-sql-server-windows?view=sql-server-ver15#180 |
PowerShell Script: | https://silentinstallhq.com/microsoft-odbc-driver-18-for-sql-server-install-and-uninstall-powershell/ |
Microsoft ODBC Driver 18 for SQL Server Silent Install (MSI) on 64-bit Systems
- Navigate to: https://docs.microsoft.com/en-us/sql/connect/odbc/windows/release-notes-odbc-sql-server-windows?view=sql-server-ver15
- Select Download x64 installer link
- Download the msodbcsql.msi to a folder created at (C:\Downloads\x64)
- Navigate to: https://aka.ms/vs/17/release/vc_redist.x64.exe
- Download the vc_redist.x64.exe to a folder created at (C:\Downloads\x64)
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Navigate to the C:\Downloads\x64 folder
- Enter the following commands:
vc_redist.x64.exe /install /quiet /norestart |
MsiExec.exe /i msodbcsql.msi IACCEPTMSODBCSQLLICENSETERMS=YES /qn |
After a few moments you will find Microsoft ODBC Driver 18 for SQL Server entries in the Installation Directory and Programs and Features in the Control Panel.
Software Title: | Microsoft ODBC Driver 18 for SQL Server |
Vendor: | Microsoft Corporation |
Version: | 18.0 |
Architecture: | 64-bit |
Installer Type: | MSI |
Silent Install Switch (Step 1) | vc_redist.x64.exe /install /quiet /norestart |
Silent Install Switch (Step 2) | MsiExec.exe /i msodbcsql.msi IACCEPTMSODBCSQLLICENSETERMS=YES /qn |
Silent Uninstall Switch: |
|
Repair Command: |
|
Download Link: | https://docs.microsoft.com/en-us/sql/connect/odbc/windows/release-notes-odbc-sql-server-windows?view=sql-server-ver15#180 |
PowerShell Script: | https://silentinstallhq.com/microsoft-odbc-driver-18-for-sql-server-install-and-uninstall-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 an Installation Log File
The Microsoft ODBC Driver 18 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 ODBC Driver 18 for SQL Server Silent Install with Logging on 32-bit System
vc_redist.x86.exe /install /quiet /norestart /log "%WINDIR%\Temp\VC2017x86-Install.log" |
MsiExec.exe /i msodbcsql.msi IACCEPTMSODBCSQLLICENSETERMS=YES /qn /L*v "%WINDIR%\Temp\MSODBCSQL18x86-Install.log" |
Microsoft ODBC Driver 18 for SQL Server Silent Install with Logging on 64-bit System
vc_redist.x64.exe /install /quiet /norestart /log "%WINDIR%\Temp\VC2017x64-Install.log" |
MsiExec.exe /i msodbcsql.msi IACCEPTMSODBCSQLLICENSETERMS=YES /qn /L*v "%WINDIR%\Temp\MSODBCSQL18x64-Install.log" |
Include the ODBC Driver for SQL Server SDK Feature
32-bit System
vc_redist.x86.exe /install /quiet /norestart |
MsiExec.exe /i msodbcsql.msi ADDLOCAL=ALL IACCEPTMSODBCSQLLICENSETERMS=YES /qn |
64-bit System
vc_redist.x64.exe /install /quiet /norestart |
MsiExec.exe /i msodbcsql.msi ADDLOCAL=ALL IACCEPTMSODBCSQLLICENSETERMS=YES /qn |
How to Uninstall Microsoft ODBC Driver 18 for SQL Server Silently
Check out the Microsoft ODBC Driver 18 for SQL Server Install and Uninstall (PowerShell) post for a scripted solution.
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Enter one of the following commands:
Version | Microsoft ODBC Driver 18 for SQL Server Silent Uninstall String |
18.0 (32-bit) | MsiExec.exe /x {A29C43CE-3F3C-48DA-A84F-189CFCCED242} /qn |
18.0 (64-bit) | MsiExec.exe /x {C06BE5BC-2AA4-42FC-B8F8-7236F070B0EA} /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.