1

我正在尝试连接到使用 Windows 身份验证的 SSAS Cube

我的 Web 应用程序存储在单独的服务器上,SQL 分析实例(让我们说ServerWebApp)和 SSAS 多维数据集ServerCUBE

OLAPCon = New AdomdConnection("Provider=MSOLAP.4; roles=Administrator; Integrated Security=SSPI; Persist Security Info=True; EffectiveUserName=<Domain\Username>; " _
& " Initial Catalog=<DBName>; Data Source=<ServerCUBE>; ")

由于 SSAS 使用 Windows 身份验证,我尝试通过指定来模拟我的 Windows 登录EffectiveUserName,但这似乎不起作用,因为我收到以下错误:

Either the user, Domain\ServerWebApp, does not have access to the <DBName> database, or the database does not exist. 

如您所见,它使用的是网络应用程序登录 ID,而不是我的 Windows ID

如何在 SSAS ADOMD 连接字符串中模拟我的 Windows ID?

4

2 回答 2

0

您需要首先通过创建应用程序池来配置 IIS 服务器。然后您需要将此池指向由 msmdpump.dll 和 msmdpump 文件组成的本地路径(C 盘中的文件夹)。使用记事本编辑 msmdpump 文件(删除 localhost 名称并将其替换为您的 SQL 分析服务器名称)。提供服务器名称的用户名代替域\用户名。

于 2015-02-19T18:38:17.707 回答
0

当我使用 EffectiveUserName 时,这让我大吃一惊。来自MSDN

若要使用 [the EffectiveUserName] 属性,调用者必须在 Analysis Services 中具有管理权限。

于 2014-04-08T14:51:35.183 回答