SQL server service pack,hotfix applied dates

  • Hello,

    Found Powershell script in below blog to list the last install date and time for windows updates on servers.

    https://gallery.technet.microsoft.com/scriptcenter/4d70947e-21b1-4a45-9d78-a7198ed55cca

    Is there any way we can get SQL server service pack,hotfix applied dates?

    Thanks in advance

    Regards,

  • Sreejith! (12/20/2016)


    Hello,

    Found Powershell script in below blog to list the last install date and time for windows updates on servers.

    https://gallery.technet.microsoft.com/scriptcenter/4d70947e-21b1-4a45-9d78-a7198ed55cca

    Is there any way we can get SQL server service pack,hotfix applied dates?

    Thanks in advance

    Regards,

    This information is available if you open Programs and Features / View Installed Updates, therefore the answer is 'yes' : you just need to work out how to read the right bit of the Registry.

    The absence of evidence is not evidence of absence
    - Martin Rees
    The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
    - Phil Parkin

  • Thanks for the reply.Unfortunately there is no log(date attribute) which tells us when registry key was created or edited

  • Sreejith! (12/20/2016)


    Thanks for the reply.Unfortunately there is no log(date attribute) which tells us when registry key was created or edited

    OK, fair point. I think that you will find this information in Win32_Product.

    The absence of evidence is not evidence of absence
    - Martin Rees
    The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
    - Phil Parkin

  • No luck with Win32_Product as well 🙁

  • Sreejith! (12/22/2016)


    No luck with Win32_Product as well 🙁

    Sorry, I'm out of ideas.

    The absence of evidence is not evidence of absence
    - Martin Rees
    The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
    - Phil Parkin

  • This was removed by the editor as SPAM

  • Thanks 🙂

    The long hex-named subkeys in the registry path HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\. cotains infomation about patch installed date.

    Now the challenge is to search through the Hexadecimal folders ,for InstallProperties subfolders and search for DisplayName = SQL Server 2008/2012/2014* and then retrive the InstallDate.Is there any way we do it with T-sql?

Viewing 9 posts - 1 through 8 (of 8 total)

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