我在开发数据库中遇到了以下错误:
A .NET Framework error occurred during execution of user-defined routine or aggregate "SpCreateTable":
System.Security.HostProtectionException: Attempted to perform an operation that was forbidden by the CLR host.
The protected resources (only available with full trust) were: All
The demanded resources were: Synchronization, ExternalThreading
正确的解决方案是将"trustworthy"设置为"on"吗?这样做会有什么安全顾虑吗?
UNSAFE ASSEMBLY
权限时也会出现这个错误。如果以上情况都不是问题所在,那么你在 proc 方法中调用了哪些框架方法? - Solomon Rutzky