Microsoft SQL Server 2014 Express LocalDB is a developer oriented, on-demand managed instance of the SQL Server engine that can be turned on automatically when needed and turned off when not in use. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of Microsoft SQL Server 2014 Express LocalDB from the command line using the MSI installer.
How to Install Microsoft SQL Server 2014 Express LocalDB Silently
SQL Server 2014 Express LocalDB Silent Install (MSI) on 32-bit Systems
- Navigate to: https://www.microsoft.com/en-us/download/details.aspx?id=57473
- Click Download
- Select the ENU\x86\SqlLocalDB.msi
- Download & Copy the SqlLocalDB.msi to a folder created at (C:\Downloads)
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Navigate to the C:\Downloads folder
- Enter the following command:
MsiExec.exe /i SqlLocalDB.msi IACCEPTSQLLOCALDBLICENSETERMS=YES /qn
- Press Enter
After a few moments you should see the Microsoft SQL Server 2014 Express LocalDB entries in the Installation Directory and Programs and Features in the Control Panel.
Software Title: | Microsoft SQL Server 2014 Express LocalDB |
Vendor: | Microsoft Corporation |
Version: | 12.3.6024.0 |
Architecture: | x86 |
Installer Type: | MSI |
Silent Install Switch: | MsiExec.exe /i SqlLocalDB.msi IACCEPTSQLLOCALDBLICENSETERMS=YES /qn |
Silent Uninstall Switch: | MsiExec.exe /x {6F124CD9-7432-47D3-92CC-234BA61926AC} /qn |
Download Link: | https://www.microsoft.com/en-us/download/details.aspx?id=57473 |
PowerShell Script: | https://silentinstallhq.com/microsoft-sql-server-2014-express-localdb-install-and-uninstall-powershell/ |
SQL Server 2014 Express LocalDB Silent Install (MSI) on 64-bit Systems
- Navigate to: https://www.microsoft.com/en-us/download/details.aspx?id=57473
- Click Download
- Select the ENU\x64\SqlLocalDB.msi
- Download & Copy the SqlLocalDB.msi to a folder created at (C:\Downloads)
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Navigate to the C:\Downloads folder
- Enter the following command:
MsiExec.exe /i SqlLocalDB.msi IACCEPTSQLLOCALDBLICENSETERMS=YES /qn
- Press Enter
After a few moments you should see the Microsoft SQL Server 2014 Express LocalDB entries in the Installation Directory and Programs and Features in the Control Panel.
Software Title: | Microsoft SQL Server 2014 Express LocalDB |
Vendor: | Microsoft Corporation |
Version: | 12.3.6024.0 |
Architecture: | x64 |
Installer Type: | MSI |
Silent Install Switch: | MsiExec.exe /i SqlLocalDB.msi IACCEPTSQLLOCALDBLICENSETERMS=YES /qn |
Silent Uninstall Switch: | MsiExec.exe /x {BAF67399-85CD-4555-9B49-1F80EB921C35} /qn |
Download Link: | https://www.microsoft.com/en-us/download/details.aspx?id=57473 |
PowerShell Script: | https://silentinstallhq.com/microsoft-sql-server-2014-express-localdb-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 SQL Server 2014 Express LocalDB 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 SQL Server 2014 Express LocalDB Silent Install with Logging (MSI)
MsiExec.exe /i SqlLocalDB.msi IACCEPTSQLLOCALDBLICENSETERMS=YES /qn /L*v "%WINDIR%\Temp\SqlLocalDB-Install.log" |
How to Uninstall Microsoft SQL Server 2014 Express LocalDB Silently
Check out the Microsoft SQL Server 2014 Express LocalDB 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 | SQL Server 2014 Express LocalDB Silent Uninstall String |
12.3.6024.0 (32-bit) | MsiExec.exe /x {6F124CD9-7432-47D3-92CC-234BA61926AC} /qn |
12.3.6024.0 (64-bit) | MsiExec.exe /x {BAF67399-85CD-4555-9B49-1F80EB921C35} /qn |
12.2.5000.0 (32-bit) | MsiExec.exe /x {89222308-CCBA-4C28-99A0-39C65A9D3974} /qn |
12.2.5000.0 (64-bit) | MsiExec.exe /x {78426A54-76E9-4F08-A3D6-661289D991A2} /qn |
12.0.2000.8 (32-bit) | MsiExec.exe /x {4A1DEB7A-341B-453E-A3AF-7EA9902F9711} /qn |
12.0.2000.8 (64-bit) | MsiExec.exe /x {AB8DE9BA-19E1-446A-BCFA-6B3DA9751E21} /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.