patching automation

  • i have 20 servers in  my environment , need to do automation for sql patching  some are cluster  and some are standalone , can any one help in  providing script  to do

  • Hi,
    it depends.
    Single Nodes are offline if you are patching, no script needed.
    And there are a lot of topic, how to patch an Cluster / AOAG.
    AOAG, patch the inactive node first, failover and then patch the next inactive node.
    Cluster, try to patch the inactive node first. But there are some patches, which need to be installed on the active node.

    And be sure, to have a backup from your database, and you testet the restore.

    Kind regards,
    Andreas

  • Thanks  for the reply .I know to patch the sql  server but i want to do automate this task on servers.i need how to automate the sql patching  on servers .

  • ramyours2003 - Tuesday, March 26, 2019 8:07 AM

    Thanks  for the reply .I know to patch the sql  server but i want to do automate this task on servers.i need how to automate the sql patching  on servers .

    You may want to look at using Powershell for automating the patching. There are quite a few Posh scripts related to automating that. One example:
    Update multiple SQL Server systems with PowerShell

    dbatools also has a command in their Posh tool set for doing this:
    Update-DbaInstance

    Sue

  • This was removed by the editor as SPAM

  • This was removed by the editor as SPAM

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply