我正在尝试连接到使用 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?