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

后端 未结 7 1337
执笔经年
执笔经年 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:18

    This is how I managed to make it work:

    ALTER DATABASE databasename SET trustworthy ON
    
    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
    
    /
    DROP ASSEMBLY assemblyname
    
    GO
    
    
    CREATE ASSEMBLY assemblyname
    FROM 0x4D5A9000.....
    WITH PERMISSION_SET = EXTERNAL_ACCESS
    

提交回复
热议问题