Home Article SQL Server SQL Server License Information 
SQL Server License Information PDF Print E-mail
User Rating: / 1
PoorBest 
SQL Server - Articles
Written by Sarabpreet Singh   

 

Script to get SQL Server License Information.

SELECT ServerProperty('LicenseType') as LicenseType, ServerProperty('NumLicenses') as ProcessorCount

 

SQL 2005 no longer tracks licensing (per seat or per processor) via registry entries. SQL 2005 still reads the registry for this information, but the SQL 2005 setup doesn’t put licensing information in the registry during setup as in SQL 2000.

 

 

This is by-design. Hence, when ServerProperty(‘LicenseType’) is run on a SQL 2005 installation, ‘DISABLED’ is always returned.

 

This could be a problem for large companies who would like a programmatic way to track licensing rather than just having paper license tracking (which is the current method in SQL 2005).


Supported Resolution

Since SQL 2005 still queries the registry for licensing information, add the following key and values and ServerProperty(‘LicenseType’) will return license information.

 

Note: Licensing has always been server wide and not SQL instance specific. This setting would apply to all instances of SQL Server on the server.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\90\MSSQLLicenseInfo\MSSQL9.00

If you want to configure SQL Server for Per Processor then add these Registry Values under that Key adjusting for the number of processors you have a license for:

 

Name                          Type                           Value
Mode                        REG_DWORD                    2           --> LICENSE_MODE_PERPROC   
ConcurrentLimit        REG_DWORD                    4           --> Number of Processors

 

If you want to configure SQL Server for Per Seat licensing then add these Registry values under the Key adjusting for the number of seat license you have purchased.

 

Name                          Type                           Value
Mode                      REG_DWORD                     0            --> LICENSE_MODE_PERSEAT   
ConcurrentLimit        REG_DWORD                   100         --> No. of client licenses registered for SQL Server in Per Seat mode.

 

 

 

 

Comments
RSS
Only registered users can write comments!

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

 

Statistics

Content View Hits : 63191

Powered by Solutions-Guru.com!. Designed by: budget hosting reseller hosting packages Valid XHTML and CSS.