?
Solved

SQL Server Licence

Posted on 2013-01-10
1
Medium Priority
?
459 Views
Last Modified: 2013-01-30
Hi Team ,

Can any one tell me how to retrieve License key of SQL server.

The tools i have are showing all other software's but not SQL server License.

Thanks in Advance
Pradeep
0
Comment
Question by:Babcy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 30

Accepted Solution

by:
Brad Howe earned 2000 total points
ID: 38766714
Hi There,

Here is a simple powershell V2 script that you can use from the server to get your product Key for an installed version of SQL 2005/2008/2008R2/2012. If there server is 2003, you will need to install powershell v2.

Windows Management Framework (Windows PowerShell 2.0, WinRM 2.0, and BITS 4.0)
http://support.microsoft.com/kb/968929


http://mspowershell.blogspot.com/search?q=sql+server+key

Usage:
1. Open notepad
2. Save script to GetSQLkey.ps1
3. Open Powershell V2
4. Set-executionPolicy remotesigned (If not already set) or you'll get an error.
5. import-module -Name <drive>:\GetSQLkey.ps1
6. Get-SQLServerKey

*you may need to modify the registry locationkey value for 2005 as it may be incorrect. My 2005 version DigitalProductID Key was DigitalProductID77654 and not DigitalProductId77591.

I just used this on 3 of my instances (2005, 2008, 2008 R2) without issue and confirmed the keys are correct since i have them.

Cheers,
Hades666
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question