vb.net 关于在OLAP中检索出cube 和维度的问题
Dim adoCub As ADOMD.CubeDef
Dim adoCat As New ADOMD.Catalog()
Dim oledbconn As New OleDb.OleDbConnection("Provider=MSOLAP.2;Integrated Security=SSPI;Persist Security Info=False;Data Source=monday;Initial Catalog=foodmart 2000")
oledbconn.Open()
For Each adoCub In adoCat.CubeDefs
Debug.WriteLine(adoCub.Name)
Next adoCub
报错:
未处理的“System.Runtime.InteropServices.COMException”类型的异常出现在 mscorlib.dll 中
其他信息:连接无法用于执行此操作。在此上下文中它可能已被关闭或无效。
请大侠们帮帮忙!!
我要如何检索才行??