Microsoft SQL Server: Determining CD Key

Contributor Icon Contributed by Rob Rogers  
Tag Icon Tagged: Database  

You can easily determine your CD key for your SQL Server software by just typing a few lines into the query window. To do this:


1. Open up the query window.

2. Copy and paste the following:

USE master
USE master
EXEC xp_regread 'HKEY_LOCAL_MACHINE',
'SOFTWARE\Microsoft\Microsoft SQL Server\80\registration',
'CD_KEY'

3. Execute the query.

The results will give you the CD key under the Data column.

 

3 Comments -


  1. angad said on February 18, 2009

    Product key for registration of SQL server 2005

  2. Muralikrishna said on August 3, 2010

    USE master
    USE master
    EXEC xp_regread ‘HKEY_LOCAL_MACHINE’,
    ‘SOFTWAREMicrosoftMicrosoft SQL Server80registration’,
    ‘CD_KEY’

  3. Bijendra said on November 18, 2010

    hi all masters ,

    i m a student, got a sql server 2005 edition. But there is no product key.
    Please provide me the key or any way how to get it ?

 

RSS feed for comments on this post. TrackBack URL

Leave a comment -