What should it look like when your SQL servers are properly licensed? New job, going through my server inventory. I've been using this script to get the version &amp; licensing:

select @@version as version, 
SERVERPROPERTY('LicenseType') as licenseType, 
SERVERPROPERTY('NumLicenses') as NumLicenses  


But all my results are returning a disabled license, and null for the number:

version                                 licenseType NumLicenses
Microsoft SQL Server 2008 R2 (SP2) ...  DISABLED    NULL


Which has me questioning myself. Licensing isn't something I've had to deal with before. Is this query correct? Is it even possible for it to function without being properly licensed?

question: What should my query return if my server is properly licensed? Is there a better way to check?
Aha, those will always be disabled and null, according to the SERVERPROPERTY (Transact-SQL) manual page:

LicenseType:

Unused. License information is not preserved or maintained by the SQL Server product. Always returns DISABLED.


NumLicenses:

Unused. License information is not preserved or maintained by the SQL Server product. Always returns NULL.



The query is not correct.
Instead, I need to download Microsoft's Assessment and Planning Toolkit (MAP).