CLR сборка

USE master;
GO

CREATE ASYMMETRIC KEY SQLCLR_SQLPKey FROM EXECUTABLE FILE = 'E:\Dev\SQLdefl\MysqlFunc\bin\Debug\MysqlFunc.dll'
CREATE LOGIN SQLCLR_SQLPLogin FROM ASYMMETRIC KEY SQLCLR_SQLPKey ;
GRANT UNSAFE ASSEMBLY TO SQLCLR_SQLPLogin ;
GO

CREATE ASSEMBLY SQLCLR_sqlp
FROM 'E:\Dev\SQLdefl\MysqlFunc\bin\Debug\MysqlFunc.dll'
WITH PERMISSION_SET = UNSAFE;