Posts Assembly definition into SQL Server (Programmability / Assemblies)
Post
Cancel

Assembly definition into SQL Server (Programmability / Assemblies)

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

This post is licensed under CC BY 4.0 by the author.
Contents

Trending Tags