CRM Filtered Views through VPN access
I'm currently developing a set of reports for Microsoft CRM. I'm using Visual Studio 2005 to create and design the RDL files from my local development machine which sits on a different network from the client. I have access to the CRM database through VPN and by using a SQL Server user logon which is not an Active Directory user setup within the CRM.
I need to use the filtered views from the CRM database but as I'm not logged in as an active directory user whilst I'm connected from Visual Studio I do not receive any results from my queries.
I've seen the solution some people have suggested whereby you use "EXECUTE AS USER = 'domain\user'" before performing the lookup but I cannot use a remote domain user as I get the following error upon querying:
"Cannot execute as the database principal because the principal "DomainEx\usernameEx" does not exist, this type of principal cannot be impersonated, or you do not have permission."
Can开发者_如何学C someone please provide me some guidance on how to use the filtered views during report development when you are not in the local domain context?
I have access to the CRM database through VPN and by using a SQL Server user logon which is not an Active Directory user setup within the CRM.
In order to query against the filtered views you NEED to do so as an active directory user that is in CRM using Windows Authentication. A SQL authenticated session won't work. Try developing your reports against the views and once you get the look and feel right simply rename the views to filtered views and then deploy. That'll be the easiest way to get this done.
精彩评论