Install SQL Server Silently from Command Line

SQL WARRIOR
Feb 12, 2021

Here we use SQL Server 2017 Latest patch as an example. Let’s assume we downloaded the file and named it to :

SQLServer2017-KB4583457-x64 — GDR

REM starting SQL Server cu install…………
“C:\DBA\SQLServer2017-KB4583457-x64 — GDR.exe” /Quiet /IAcceptSQLServerLicenseTerms /Action=Patch /AllInstances

REM SQL SERVER CU install complete

REM optional STEP to reboot your machine
REM Reboot the host before kicking off the install
shutdown.exe /r /f /c “DBA scheduled reboot” /t 1

Sometimes the official document is too long to read. I hope this simple script be helpful to you!

--

--

SQL WARRIOR

AWS Database Consultant. Still have passion on SQL Server since 1998. Expert on SQL Server Performance Tunning, High Availability. VMWare VCP 6/7.