SQL Server stops loading assembly

后端 未结 13 1496
花落未央
花落未央 2020-12-13 00:12

We have developed an assembly for SQL Server 2008 R2.

The assembly has been working for a week. The managed stored proc inside the assembly was working fine for the

13条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-13 00:23

    Just in case someone comes across this problem, the solution that worked for me was:

    ALTER AUTHORIZATION ON DATABASE::[mydb] TO sa;
    

    followed by

    ALTER DATABASE [mydb]  SET TRUSTWORTHY ON;
    

    I am restoring my db with the Administrator account, and nothing else other than the combination of these two calls has worked for me.

    Substitute [mydb] for [yourdatabasename]

提交回复
热议问题