When I use SSMS to create an assembly dll, it generates a script like this :
CREATE ASSEMBLY [SqlFunctions]
AUTHORIZATION [dbo]
FROM 0x4D5A9...
WITH PERMISSION_SET = UNSAFE
To generate this script automatically, I must generate the FROM 0x4D5A9... part, is it the hex dump of the dll ?
Is it possible using an SQL function or should I generate this hex dump with a c# function ?