2014-05-12 78 views
1

当您安装CRM 2013本地部署时,它将数据库的数据库所有者设置为安装帐户。在安装完成后是否支持更改数据库所有者,如果有,是否需要哪些权限?CRM 2013更改数据库所有者

回答

2

当他们从产品中获得更新时,我们在Dev和QA环境中多次完成了它。默认情况下,数据库的所有者是不存在的域,所以我们得到这样的错误:

Exception: System.Data.SqlClient.SqlException (0x80131904): An error occurred in the Microsoft .NET Framework while trying to load assembly id 65536. The server may be running out of resources, or the assembly may not be trusted with PERMISSION_SET = EXTERNAL_ACCESS or UNSAFE. Run the query again, or check documentation to see how to solve the assembly trust issues. For more information about this error: System.IO.FileLoadException: Could not load file or assembly 'microsoft.crm.sqlclr.helper, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. An error relating to security occurred.

我不能实际权利说话,但这个是我们运行查询:

ALTER DATABASE Contoso_MSCRM SET TRUSTWORTHY ON 

USE Contoso_MSCRM 
GO 

EXEC sp_changedbowner 'dev\crmdv2administrator' 
+0

感谢您的回答。 crmdv2administrator是AD帐户还是本地用户? – GoBeavs

+0

@GoBeavs这是一个AD帐户,它是CRM中的管理员,但我相信只要将其设置为db_owner就是我们必须要做的。 – Daryl