Distributed query for license key

Hello,
I have a distributed query that I'm hoping is retrieving the license key information below:
USE master
GO
create table #version
version_desc varchar(2000)
insert #version
select @@version
if exists
select 1
from #version
where version_desc like '%2005%'
Begin
DECLARE @Registry_Value_2005 VARCHAR(1000)
EXEC xp_regread 'HKEY_LOCAL_MACHINE','SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\Setup','ProductCode',@Registry_Value_2005 OUTPUT --2005
SELECT @@version as 'version',@Registry_Value_2005 as 'license_key'
End
else if exists
select 1
from #version
where version_desc like '%express%'
Begin
DECLARE @Registry_Value_2008_express VARCHAR(1000)
EXEC xp_regread 'HKEY_LOCAL_MACHINE','SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\Setup','ProductCode',@Registry_Value_2008_express OUTPUT -- 2008 express
SELECT @@version as 'version',@Registry_Value_2008_express as 'license_key'
End
else if exists
select 1
from #version
where version_desc like '%R2%'
Begin
DECLARE @Registry_Value_2008_R2 VARCHAR(1000)
EXEC xp_regread 'HKEY_LOCAL_MACHINE','SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\Setup','ProductCode',@Registry_Value_2008_R2 OUTPUT -- 2008 R2
SELECT @@version as 'version',@Registry_Value_2008_R2 as 'license_key'
End
else if exists
select 1
from #version
where version_desc like '%2008%'
Begin
DECLARE @Registry_Value_2008 VARCHAR(1000)
EXEC xp_regread 'HKEY_LOCAL_MACHINE','SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10.MSSQLSERVER\Setup','ProductCode',@Registry_Value_2008 OUTPUT -- 2008
SELECT @@version as 'version',@Registry_Value_2008 as 'license_key'
End
else if exists
select 1
from #version
where version_desc like '%2012%'
Begin
DECLARE @Registry_Value_2012 VARCHAR(1000)
EXEC xp_regread 'HKEY_LOCAL_MACHINE','SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL11.MSSQLSERVER\Setup','ProductCode',@Registry_Value_2012 OUTPUT -- 2012
SELECT @@version as 'version',@Registry_Value_2012 as 'license_key'
End
else
Begin
select 'version not recognized'
End
drop table #version
I'm noticing the 'key' is coming back the same across our 2012 instances and I'm pretty sure this isn't right. Am I retrieving the right value from the registry? I want to get the actual key that is installed when SQL is installed. Please help also feel
free to borrow this code if you like.
Thanks!
phil

Hi phil,
The following query will return the serial number in binary format, you can convert this binary value to product key as other post. For more details, please review this similar
blog.
use master
GO
exec xp_regread 'HKEY_LOCAL_MACHINE','SOFTWARE\Microsoft\Microsoft SQL Server\110\Tools\Setup','DigitalProductID'
GO
Regarding to the product code, SQL Server consists of different products registered in the Registry. Each product has a product code (a GUID) as well as an installation package code (also a GUID). For more details, please review this similar
thread.
Additionally, for license issues, please call
1-800-426-9400,
Monday through Friday, 6:00 A.M. to 6:00 P.M. (Pacific Time) to speak directly to a Microsoft licensing specialist. For international customers, please use the Guide to Worldwide Microsoft Licensing Sites to find contact information in your locations.
Thanks,
Lydia Zhang
Lydia Zhang
TechNet Community Support

Similar Messages

  • Limit for license key Process Server Service. JCL_ FTP is exceded

    Hi All,
    We are getting strange error in Redwood. Now we are not able to start process servers. Process servers were running fine and we were able to run jobs. For some activities in UNIX server we stopped the unix process server and now we are getting strange error while starting process server
    9:52:51 PM: JCS-102204: Limit for license key Process Server Service. JCL_ FTP is exceeded; limit is 0, changes require 1.
    And we are not able create any new process servers also with job definition type System or Job Chain. While creating we are getting same error.
    We have license ProcessServerService.JCL_FTP with the value true.
    To create new process server we don't need any JCL_FTP license. Don't know why we are getting strange error.Please help me on this.
    Version: SAP 7.00
    Build: M26.10-29140
    Thanks,
    Preethish

    Issue is fixed in next version of SAP CPS

  • Query Adobe License Keys in 6.0

    Does anyone know of a way to query the license key used on a local client without having to visit each desk? Version 4 and 5 provided the key simply in the registry- hklm\software\microsoft\windows\uninstall\adobe..\productID- but this is not found anywhere on Version 6.0.

    If you mean the serial number, you can find that here:
    HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Adobe Acrobat\6.0\Registration
    under SERIAL, but the number is encrypted.

  • Windows 8 setup does not prompt for license key, then fails, on hp envy notebook

    Hi,
    I am trying to install Windows 8 pro on an hp envy dv7 notebook, that came with a Windows 8 home pre-installed.
    I tried by running the setup from the CD inserted while Windows was running, but setup complained that no license key matched the CD and faled. Strange enough,
    setup did not prompt for any license key!
    I tried the setup on another, older PC, there it did prompt for license key and setup ended well. At least it was not the CD.
    Then I retried booting from setup CD, it loaded files, then started the setup without promptiing for any license key, and failed again.
    Then I tried with a Windows 7 CD, same behavior, not prompting for license key and fail to setup.
    Then I "repaired" Windows by booting from CD and reformatting the hard drive, dropping all Windows partitions, then restart setup from CD, but it still behaved the same way: not prompting for license key, and failing to setup.
    I called the HP support, and they answered that it was a problem for Microsoft (what a good support, the only place where the problem occurs is the hp computer, but let the Customer call Microsoft instead).
    So here I am, did any of you use an hp computer, and succeeded in installing Windows 8 PRO NFR from Technet plus on it?
    Regards
    Pierre

    Hi,
    I am trying to install Windows 8 pro on an hp envy dv7 notebook, that came with a Windows 8 home pre-installed.
    I tried by running the setup from the CD inserted while Windows was running, but setup complained that no license key matched the CD and faled. Strange enough,
    setup did not prompt for any license key!
    I tried the setup on another, older PC, there it did prompt for license key and setup ended well. At least it was not the CD.
    Then I retried booting from setup CD, it loaded files, then started the setup without promptiing for any license key, and failed again.
    Then I tried with a Windows 7 CD, same behavior, not prompting for license key and fail to setup.
    Then I "repaired" Windows by booting from CD and reformatting the hard drive, dropping all Windows partitions, then restart setup from CD, but it still behaved the same way: not prompting for license key, and failing to setup.
    I called the HP support, and they answered that it was a problem for Microsoft (what a good support, the only place where the problem occurs is the hp computer, but let the Customer call Microsoft instead).
    So here I am, did any of you use an hp computer, and succeeded in installing Windows 8 PRO NFR from Technet plus on it?
    Regards
    Pierre
    Is it a Chinese Editon preinstalled in HP notebook?
    Windows 8 preinstall machine includes a license key in system firmware. So Windows 8 setup will use this key rather than pop up product key input text pop. It is a Microsoft by design issue. So no good mathod to workaround this problem.
    http://whqlcn.wordpress.com

  • Does SAP business one require solution manager for license keys ?

    Does SAP business one require solution manager for license keys or you can directly get the license key from service.sap.com?

    Hi,
    Welcome you post on the SAP business one forum.
    In general, only SAP partner can get the license key. However, partner can assign the right to customer so that they can get it from portal directly.
    Thanks,
    Gordon

  • Office mac keeps asking for license key with fusion drive

    I'm posting this in case anyone else is having this trouble where Office for Mac 2011 keeps asking for the license key. I have a later 2013 iMac with Fusion drive and never have been able to use office on this computer without entering the key. In talking with Microsoft they removed office and all the files and reinstalled with no help. In speaking with Apple, they said there is a known issue with Microsoft Office and the Fusion drive and Microsoft is working on a patch. Evidently the fusion drive moves the files around and to Microsoft that looks like new hardware so it prompts for the key. Realy annoying! Microsoft

    I'm a certified Apple consultant and I recently hit this issue at an installation. On seven iMacs with the Fusion drive, I deleted the "Thunderbolt Bridge" interface from the Network System Preference. We then rebooted the computers, entered the product key one more time, and so far, the problem has disappeared and survives subsequent rebootings.
    Obviously, if you are frequently networking two Macs using Thunderbolt, this isn't a good long-term solution (though it is easily added back). However, it does appear to work. I have no sound theory as to why it works, except that Office might be interpreting the existence of that bridge as evidence that the software was copied onto a machine instead of properly installed. This is just a wild guess, though.
    I have no idea if it will work for others, but hey, the forums are for throwing out these ideas and seeing if one of them sticks for most people. So...there it is.

  • The page for License Keys in the CMC is blank

    After I had installed XI 3.1 inkluding some desktop tools, I had to uninstall Xcelsius. The result was that the License Keys page in the CMC turned blank. I am not able to add/change or even see my license keys anymore.
    How to get this back?

    Hi,
    Please refer to this link for better understanding of CIN
    [CIN|http://www.docstoc.com/docs/8264622/CIN]

  • Indesign cs6, subscription, asking for license key

    hi. i bought an indesign subscription.
    i downloaded and installed it via app manager.
    i am logged in as the person who bought the subscription.
    i can't start it - it's asking for a license key.
    i am using win 8 pro.
    i uninstalled my all adobe products on my pc about 10 times and reinstalled them again.
    at first i couldn't even start indesign through the app manager - option was greyed out.
    after about 7 uninstalls and reinstalls it is giving me the licensing stuff.
    update: now after i installed the updates for indesign, bridge and whatever there is no option to start indesign. there is just a greyed out word: "updated". nice!
    please help.

    Snip1236 please contact our support team so they can verify your subscription status.  You can access chat support at http://adobe.ly/yxj0t6.

  • Aperture always ask for license key after migration to a new mac

    Hello,
    I used the migration tools to transfer data and applications from my old mac to the new one.
    When I lauch Aperture it always ask me to write the license key. I do it and can start to use Aperture.
    The problem is that this settings is not saved and I have to put again the serial key everytime I launch Aperture.
    I use the last version of Aperture 3.
    Thanks in advance.

    You may have a corrupted "ProAppSystemID" file or Aperture cannot write to the System Library.
    To stop Aperture asking for the serial number, first check, if you still have an old file "ProAppSystemID" in your System Library.
    Quit Aperture.
    Go to your MacintoshHD and open the folder "Library", then "Application Support", then "ProApps".
    Remove the File "ProAppsSystemID" to the Desktop, if it exist and restart Aperture.
    Reenter your serial number, hopefully for the last time.
    Sometimes Aperture writes this file to a temporary directory, when it cannot write to the Library. If the above does not work, look at the temporary directory /tmp
    Use the Finder's "Go" menu
         Go > Got to folder    and  enter /tmp into the textfield. If you see the file there, move it to its proper location.
    In this case you may want to repair the permissions on your system drive; you can do this using the "First Aid" tools in "Disk Utility" (located in Applications > Utilities)
    Regards
    Léonie

  • Open vnc asking for license key

    Hi all,
    I am trying to install the free version of vnc on my RHEL box:
    [root@erp virtualbox_4.2.6]# uname -a
    Linux *********** 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
    [root@erp virtualbox_4.2.6]# rpm -Uvh vnc-4_1_3-x86_linux.rpm
    Preparing...                ########################################### [100%]
       1:vnc                    ########################################### [100%]
    Checking for perl... [OK]
    Checking for uname... [OK]
    Checking for xauth... [OK]
    But when I am trying to run it, it is throwing following error message:
    [root@erp virtualbox_4.2.6]# vncserver
    VNC(R) Server 5.2.0 (r118477) 64-bit (Jun  3 2014 10:59:51)
    Copyright (C) 2002-2014 RealVNC Ltd.
    VNC is a registered trademark of RealVNC Ltd in the U.S. and in other
    countries.
    Protected by UK patent 2481870.
    See http://www.realvnc.com for information on VNC.
    For third party acknowledgements see:
    http://www.realvnc.com/products/vnc/documentation/5.2/acknowledgements.txt
    Error: No license keys found.
    Run vnclicense to apply a license key. [NoLicense]
    Why is license required for free version? Am I doing something wrong here?
    Regards,
    Vinod

    You may have installed the VNC enterprise verison. https://www.realvnc.com/products/vnc/documentation/4.6/unix/unixlicense.html
    However, why bother installing VNC? Virtualbox ships with a build in VNC server. Please check the Virtualbox docu.

  • Aperture suddenly asks for license key

    I have used Aperture 3 for a long time. Now suddenly Aperture started to ask licensing during start. I doesn't accept my original Aperture 2.1 license key. For Aperture 3 license key I get message to enter original license key.
    I have had problems with permission rights. Perhaps this has something to do with that?

    I doesn't accept my original Aperture 2.1 license key.
    If you need to contact the support to retrieve your serial number try this page: Pro Application Replacement Serial Numbers
    I have had problems with permission rights. Perhaps this has something to do with that?
    That would explain a lot. Have you solved that permission problem by now? A frequent reason for licence problem is that the preference file is corrupted or unreadable. Then Aperture asks for the serial number, but cannot store it  because it cannot modify the preference file.
    So it might help to remove the    ~/Library/Preferences/com.apple.Aperture.plist file from your User Library to the Desktop; this support article explains how to do it; see the section: Delete User Preferences".
    Aperture 3: Troubleshooting Basics: http://support.apple.com/kb/HT3805
    This operation will delete some of your settings, e.g. the the sizes of the subpanels in the application window, but all your presets and keywords will be saved.
    Regards
    Léonie

  • Server 2012 r2 Evaluation copy asking for license key?

    So, I'm an old dog trying to learn new tricks - the newest trick being to install Server 2012 R2 Standard with Hyper-V role. After a bit of fumbling around (good story for another time) I have managed to make it to the point of installing the OS onto the
    virtual machine I created. Sweet. My understanding from extensive internet research is that I should now use an ISO image of Server 2010 R2 (an ISO of the Evaluation Copy it seems being universally suggested), for installing the OS to the virtual
    machine and then subsequently change the license key to my OEM license key using the
    slmgr -rearm command. OK, if that is correct I can deal with it. But I have top get it installed first. I have downloaded the following ISO from Technet:
    9600.16384.WINBLUE_RTM.130821-1623_X64FRE_SERVER_SOLUTION_EN-US-IRM_SSSO_X64FRE_EN-US_DV5
    The setup installation starts up fine, but immediately presents a prompt screen for entering the product key. Huh? I thought evaluation copies did not require a product key to perform the installation. It will not accept my OEM product key, so I am
    stumped. Do I have the wrong ISO? I did try a couple of other copies/versions, but they conk out because Windows generates  errors saying something to the effect that they are not the right version for the SCSI Synthetic Adapter. So is there
    maybe some other ISO's I should be trying? Or, is there some place I am supposed to request a key for the ISO eval copy I have? And, if at some point I am able to get the evaluation copy installed, is my thinking correct about using my OEM key used
    to activate the physical host to change the evaluation installation into a regular installation? Or, should be  burning an ISO of my OEM installation disk to install from and use my OEM key directly to activate that when doing setup to the
    VM?

    The eval iso will not accept a oem key, this is by design, oem versions are designed for original hardware only, the eval can be activated with a volume key or I believe a retail key, the licensing agreement is different between the OEM and other
    versions.
    Appreciate your response. After a lot of late night mucking around was able to get a different evaluation copy to load: This one worked (but not without a bit of a struggle):
    9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9
    Initially I could not get this evaluation to load as the virtual SCSI adapter kept generating a system error to the effect:  "Synthetic SCSI controller [...] Failed to Power on with Error: 'The version does not support this version of the file
    format'". Only after moving the ISO file onto the physical drive holding the VHXD containing the VM and messing with security settings on the file did it finally load. This version (vs the other ISO) begins loading by first presenting a list of OS versions
    (standard and datacenter variants) to load. From there on the installation pretty much proceeded as would a normal installation would. This version did not ask for an activation key and when finally installed shows a message on the desktop that it is good
    for 180 days usage (as Microsoft has stated should be the case). I did encounter two additional problems though that had to be dealt with before success was attained.
    1) the install crashed with an error  "Windows cannot find the Microsoft Software License Terms.  Make sure the installation sources are valid and restart the installation" . That was a head scratcher. After another an hour
    of research I came a cross a mention in another forum post about memory issues being the culprit in a similar situation of someone trying to install Windows 8 into a VM. My VM was set to a use dynamic memory with a minimum of 512 MB, which is pretty typically
    recommended in the install guides I have been consulting. Wrong. So, I bumped the minimum up to 1024 MB and the problem disappeared.
    2) The installation halted when asking for the drive where I wanted the installation to be placed. Problem? No available drives were shown to pick from, i.e. the virtual drive defined in the hyper-V setup simply did not appear. Another
    hour of digging online produced a suggestion that the VM install could not recognize the drivers for the raid controller in the physical server. Perplexing. But anyway I loaded a copy of the raid controller drivers onto a USB thumb drive and
    manage to mount the thumb drive as a hard drive in the VM settings after which the virtual drive appeared in the list and the installation managed to successfully complete.
    So, at this point  I have a functional VM operating - albeit with much hair pulling an teeth gnashing along the way. Will spend a bit of time pounding on the system to what else I can break, or breaks on its own. Hopefully nothing because I don't have
    much hair left or many teeth left to lose.  fingers crossed because I haven't tried to activate the VM OS yet.

  • LR ask for License Key

    I bought Adobe CC: PS and LR. I installed PS and LR as trial version. After buying the Cloud, PS worked without trial mode, but LR still wants to have a license key, but I got no key. Neither in the mail nor online in my Adobe account. How can I use LR?
    PS: How to contact Adobe via mail? Haven`t found a way to contact them online (that’s crazy)
    thx

    Try uninstalling Lightroom (you can keep all your settings when you do this - it's an option in the uninstall routine) and then re-installing it using the Adobe Creative Cloud Application, you should find it under Apps. Do a re-boot after uninstalling to make sure the CC app recognises Lightroom is missing.

  • Query for short keys

    Hi,
    i have used tabbed pane and added short keys for tabs.
    i have setMenoniceAt method for short keys.
    For windows working perfectly. Means when go panel it show's tooltip for short keys and works.but on unix it is not working
    Like short keys for second panel is Alt+A.
    for unix it is not working for alt button but if i used Alt Gr+A then it works.
    are these button different?
    and is it platform dependent?As java is platform independent.
    thank you,
    Arati

    Tell Oracle Forms Services to use resource file fmrpcweb.res
    set parameter term (1) in file formsweb.cfg or (2) Oracle Fusion Middleware Control > forms > Web Configuration > select configuration > advanced > term
    term=C:\Oracle\Middleware\asinst_1\config\FormsComponent\forms\fmrpcweb.res

  • InDesign asks for license key inspite of subscription

    Hi. I purchased Creative Cloud subscription for one year. Donloaded software. However InDesign is still in trial mode and asks for license code. I logged out from application and logged in many times, but it is still trial! Please help!

    Ask for serial number http://forums.adobe.com/thread/1234635 has a FAQ link
    or
    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

Maybe you are looking for