ASSEMBLYPROPERTY (Transact-SQL)
Returns information about a property of an assembly.
The following example assumes that the SQL Server Database Engine samples are installed on the local computer and the HelloWorld assembly is registered in the AdventureWorks2008R2 database. For more information, see Considerations for Installing SQL Server Samples and Sample Databases.
USE AdventureWorks2008R2;
GO
SELECT ASSEMBLYPROPERTY ('HelloWorld' , 'PublicKey');