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

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

    Following code worked for me for integrated security:

    ALTER DATABASE dtabasename SET TRUSTWORTHY ON;
    GO
    
    ALTER AUTHORIZATION ON DATABASE::dtabasename TO [DOMAIN\UserName]
    GO
    

提交回复
热议问题