How to grant the database owner (DBO) the EXTERNAL ACCESS ASSEMBLY permission?

后端 未结 7 1308
执笔经年
执笔经年 2020-12-23 09:59

When I try to create assembly in SQL 2008 from .Net assembly (.Net 3.5) I am getting the below error, error says that I have to set either of the below properties as true, h

7条回答
  •  温柔的废话
    2020-12-23 10:39

    This worked for me:

    EXEC sp_changedbowner 'sa'
    ALTER DATABASE [dbase] SET trustworthy ON
    

    and I also did this:

    sp_configure 'show advanced options', 1;
    GO
    RECONFIGURE;
    GO
    
    sp_configure 'clr enabled', 1;
    GO
    RECONFIGURE;
    GO
    
    sp_configure 'show advanced options', 0;
    GO
    RECONFIGURE;
    GO
    

提交回复
热议问题