2014-05-12 109 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