1
2
3
4
5
6
7
8
9
10
11
12
13
--src - https://docs.microsoft.com/en-us/sql/relational-databases/system-catalog-views/sys-assembly-files-transact-sql
SELECT * FROM sys.assembly_files
--OR
SELECT af.name,
CAST(content AS varchar(MAX))
FROM sys.assemblies AS a
JOIN sys.assembly_files AS af ON
af.assembly_id = a.assembly_id
----------CREATE an assembly
--src - https://docs.microsoft.com/en-us/sql/relational-databases/clr-integration/assemblies/creating-an-assembly
CREATE ASSEMBLY HelloWorld FROM ‘path to file’ WITH PERMISSION_SET = SAFE
origin - https://www.pipiscrew.com/?p=19419 assembly-definition-into-sql-server-programmability-assemblies