Microsoft SQL Server 2019 lost license

Robert Anton 0 Reputation points
2024-07-22T10:09:05.3+00:00

Hello,

how can I recover a lost sql 2019 license?

Thank you,

Robert

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,977 questions
Windows Licensing
Windows Licensing
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Licensing: Rules, regulations, and restrictions that define how software can be used and distributed.
110 questions
{count} votes

2 answers

Sort by: Most helpful
  1. glebgreenspan 2,240 Reputation points
    2024-07-22T13:30:27.8433333+00:00

    Hello Robert

    Here is couple of steps

    Method 1: Check your email and Microsoft Account

    1. Check your email inbox and spam folder for any emails from Microsoft, as they may have sent you a confirmation email with the license key.
    2. If you're using a Microsoft account (formerly known as Windows Live ID), sign in to your account on the Microsoft website and check your account settings for any saved licenses or downloads.

    Method 2: Check your license key on your server

    1. Check the SQL Server installation directory (usually C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER or similar) for a file named licensing.xml.
    2. Open the licensing.xml file in a text editor and search for the ProductKey element. This should contain your license key.

    Method 3: Contact Microsoft Support

    1. Reach out to Microsoft Support through their official website or phone number.
    2. Provide them with your SQL Server 2019 product key and any relevant information about your purchase (order number, proof of purchase, etc.).
    3. They may be able to assist you in recovering your license key or provide alternative solutions.

    Method 4: Check with your organization's IT department

    1. If you're part of an organization, contact your IT department and ask if they have a record of your SQL Server 2019 license key.
    2. They may have purchased the license for you or have a backup of the key.Method 1: Check your email and Microsoft Account
      1. Check your email inbox and spam folder for any emails from Microsoft, as they may have sent you a confirmation email with the license key.
        1. If you're using a Microsoft account (formerly known as Windows Live ID), sign in to your account on the Microsoft website and check your account settings for any saved licenses or downloads.
      Method 2: Check your license key on your server
      1. Check the SQL Server installation directory (usually C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER or similar) for a file named licensing.xml.
        1. Open the licensing.xml file in a text editor and search for the ProductKey element. This should contain your license key.
      Method 3: Contact Microsoft Support
      1. Reach out to Microsoft Support through their official website or phone number.
        1. Provide them with your SQL Server 2019 product key and any relevant information about your purchase (order number, proof of purchase, etc.).
          1. They may be able to assist you in recovering your license key or provide alternative solutions.
      Method 4: Check with your organization's IT department
      1. If you're part of an organization, contact your IT department and ask if they have a record of your SQL Server 2019 license key.
      2. They may have purchased the license for you or have a backup of the key.

  2. CathyJi-MSFT 22,306 Reputation points Microsoft Vendor
    2024-07-23T03:01:49.9866667+00:00

    Hello @Robert Anton ,

    SQL server does not store license information inside SQL Server at all. You need to check your license paper or the proof of purchase by yourself.

    Suggest you contacting a Microsoft sales partner or licensing expert directly. Call (1-800-426-9400), Monday through Friday, 6:00 AM to 6:00 PM PST to speak directly to Microsoft licensing specialist. Or you can go to Volume Licensing Support Contact support. Please choose region/language and call. People there will help you more effectively. 

    Or you may try the Powershell written by Jakob Bindslet in this thread to get Back the SQL Server Product Key Information from registry, but there is no guarantee, and you have to modify the location of registry to match your SQL Server version.

    Best regards,

    Cathy

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.