0

我目前正在为 Microsoft CRM 开发一组报告。我正在使用 Visual Studio 2005 从与客户端位于不同网络上的本地开发机器创建和设计 RDL 文件。我可以通过 VPN 和使用 SQL Server 用户登录访问 CRM 数据库,该用户登录不是 CRM 中的 Active Directory 用户设置。

我需要使用来自 CRM 数据库的过滤视图,但由于我在从 Visual Studio 连接时没有以活动目录用户身份登录,因此我没有从我的查询中收到任何结果。

我已经看到一些人建议的解决方案,即在执行查找之前使用“EXECUTE AS USER = 'domain\user'”,但我无法使用远程域用户,因为查询时出现以下错误:

“无法作为数据库主体执行,因为主体“DomainEx\usernameEx”不存在,无法模拟这种类型的主体,或者您没有权限。”

当您不在本地域上下文中时,有人可以为我提供一些关于如何在报表开发期间使用过滤视图的指导吗?

4

1 回答 1

2

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.

于 2009-10-28T03:13:59.813 回答