Automation of SQL Server patching through DBA Tool #7345
Unanswered
sharmakneeraj4
asked this question in
General
Replies: 1 comment 4 replies
-
@nvarscar can surely chime in, but you may want to use the -KB param to install whatever KB you want |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Everyone,
I am trying to automate SQL Server patching through DBA tool but when I am looking at SQL Server 2012 all new updates are coming as security updates. Is there a way to install security updates that are not a part of CU or service pack through DBATool. I believe, there are some changes required in the parameter version. I want to update latest KB available that is KB4583465 SQL Version -11.0.7507.2
$version = '2014SP4'
Update-DbaInstance -ComputerName $Servers -Path '\xyz\SQL2012\CU' -Credential $cred -Version $version -Restart -Confirm:$false
Also, I want this script to generate a log that can tell if there is any failure in the script. Can someone please suggest how to do that.
Beta Was this translation helpful? Give feedback.
All reactions