2014-11-05 61 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

相關問題