SMART Retrieve License
The tool allows you to retrieve the license from SQL server or SQL database. You need to specify server name (mandatory) and database name (optionally) and press Save. The license will be stored on disk.
http://www.mibuso.com/dlinfo.asp?FileID=1586
Discuss this download here.
Comments
SELECT license FROM [master].dbo.[$ndo$srvproperty]