简体   繁体   English

OPENROWSET和SQL Server 2008安全性(SSAS)

[英]OPENROWSET & SQL Server 2008 Security (SSAS)

I try to fill a SSAS Mining Model with Data from a (local) SQL Server Table 我尝试用来自(本地)SQL Server表的数据填充SSAS挖掘模型

Both SQL Server and SSAS (all 2008) are on the same (devlopment machine) WinXP64. SQL Server和SSAS(均为2008)都位于同一台(开发计算机)WinXP64上。 SQL Server Security is 'Windows Authentication' SQL Server安全性是“ Windows身份验证”

MDX Code: MDX代码:

INSERT INTO MINING STRUCTURE [ttseries]
(
[col1],
[col2],
[col3],
[col4]
)
 OPENROWSET(
'SQLOLEDB',
'Server=(local);Trusted_Connection=YES',
'SELECT col1, col2, col3, col4 FROM  [MYDB].[dbo].[MYTable]')

If I execute the statement I recieve the error message: 如果执行该语句,则会收到错误消息:

Error (Data mining): Ad hoc connections as specified in OPENROWSET clauses cannot be used on this server. 错误(数据挖掘):无法在此服务器上使用OPENROWSET子句中指定的临时连接。

I already adjusted the SQL Server Setting for Key 我已经调整了SQL Server密钥设置

"Ad Hoc Distributed Queries" to 1 “临时分布式查询”为1

-> this was one of the common problems I found during my research, but it didn't help. ->这是我在研究过程中发现的常见问题之一,但没有帮助。

What else do I have to change or setup? 我还需要更改或设置什么?

Thanks for your help! 谢谢你的帮助! alex 亚历克斯

I figured it out 我想到了

In SSAS you have to set "DataMining\\AllowedProvidersInOpenRowset" to "SQLOLEDB" 在SSAS中,您必须将“ DataMining \\ AllowedProvidersInOpenRowset”设置为“ SQLOLEDB”

and it works... 它有效......

cheers 干杯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM