When you configure a Dynamics SL company in Management Reporter, you receive the following error message:
An error occurred while loading the company wizard. Contact your system administrator.
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.
View products that this article applies to.
DECLARE @CMD varchar(1000)
DECLARE @MRServiceUser varchar(50)
SET @MRServiceUser = 'DOMAIN\MRSEVICEUSER' --(domain\username format)
SET @CMD = 'grant exec on Company_Active to ['+ @MRServiceUser + ']
grant exec on Get_User_Info to ['+ @MRServiceUser + ']
grant exec on getAuthenticationType to ['+ @MRServiceUser + ']
grant exec on getVersion to ['+ @MRServiceUser + ']
grant exec on GetInfo to ['+ @MRServiceUser + ']
IF NOT EXISTS (SELECT * FROM sys.database_principals WHERE name = N'''+ @MRServiceUser + ''') and NOT EXISTS(SELECT * FROM sys.database_principals WHERE name = N'''+ @MRServiceUser + ''')
exec sp_grantdbaccess '''+ @MRServiceUser + ''''
exec (@CMD)
Keywords: kbmbsmigrate, kbmbspartner, kbsurveynew, kb