2014-11-05 60 views
0

我一直在寻找解决方案来解决我的疑问,但找不到比安装问题更重要的任何东西,这在我的情况中不是问题。连接到脱机立方体(.cub)文件的错误

我试图执行创建本地多维数据集C#项目(类似于this)(.CUB)从现有的处理立方体的Analysis Services 2012

该项目采取的文件和流程数据正确时运行我使用连接字符串指向(因此写入)Analysis Services上的另一个数据库的输出多维数据集。但是,当我使用以下指向要创建的本地多维数据集文件的连接字符串执行项目时,它会根据引用的ADOMD库的版本给出错误。

conn.ConnectionString = 
string.Format("Provider=MSOLAP;Data Source={0}", "c:\\output\\mycube.cub"); 

当参考ADOMD 11库,我收到以下错误:

  1. OLE DB error: OLE DB or ODBC error: A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.; 08001; Client unable to establish connection; 08001; Encryption not supported on the client.; 08001.

  2. Errors in the high-level relational engine. A connection could not be made to the data source with the DataSourceID of 'DB_NAME', Name of 'DB_NAME'.

当参考ADOMD 12库,我得到以下错误:

A connection cannot be made. Ensure that the server is running.

虽然,我知道SQL Server Analysis Services正在运行时,我检查了services.msc。

回答

1

想通了。我错过了对组件的参考Microsoft.AnalysisServices.dll

相关问题