SQL Server 2014中第1行,第1行,第16级消息10300

时间:2015-08-11 07:21:46

标签: sql-server sql-server-2014 sql-server-2014-express

无法在SQL Server 2014中创建程序集[System.Web]

查询如下:

CREATE ASSEMBLY

[System.Web] from

'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Web.dll' with permission_set = UNSAFE

抛出错误

  

Msg 10300,Level 16,State 2,Line 1

1 个答案:

答案 0 :(得分:0)

ALTER DATABASE DBName SET TRUSTWORTHY On
use MASTER
GRANT UNSAFE ASSEMBLY to public

然后运行命令

CREATE ASSEMBLY

[System.Web] from

'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Web.dll' with permission_set = UNSAFE