消息 10343,级别 14,状态 1,第 5 行
CREATE or ALTER ASSEMBLY for assembly '*******' with the SAFE or EXTERNAL_ACCESS option failed because the 'clr strict security' option of sp_configure is set to 1. Microsoft recommends that you sign the assembly with a certificate or asymmetric key that has a corresponding login with UNSAFE ASSEMBLY permission. Alternatively, you can trust the assembly using sp_add_trusted_assembly.
消息 15151,级别 16,状态 1,第 10 行
Cannot alter the assembly '*******', because it does not exist or you do not have permission.
解决办法:
EXEC sp_configure 'show advanced options', 1;
RECONFIGURE;
EXEC sp_configure 'clr strict security', 0;
RECONFIGURE;
再执行,创建你的 “程序集”
再创建你的“标识量函数”
再最后,启用 CLR
exec sp_configure 'show advanced options', '1';
go
reconfigure;
go
exec sp_configure 'clr enabled', '1'
go
reconfigure;
exec sp_configure 'show advanced options', '1';
go