又是DSO中的问题,兄弟姐妹快来啊!
Dim dsoserver As DSO.Server
Dim dsodb As DSO.MDStore
Dim dsoDataSrc As DSO.DataSource
dsoserver = New DSO.Server()
dsoserver.Connect("ll")
dsodb = dsoserver.MDStores.Item("test")
'数据源
dsoDataSrc = dsodb.DataSources.AddNew("taizhang")
dsoDataSrc.ConnectionString = "Provider=MSDASQL.1;Persist Security Info=False;Data Source=台帐;Extended Properties=""DSN=台帐;UID=Administrator;APP=Microsoft? Visual Studio .NET;WSID=LL;DATABASE=road;Network=DBMSSOCN;Trusted_Connection=Yes"""
dsoDataSrc.Update()
Dim a As String
a = dsocube.DataSources(1)
最后一句有错,不认dsocube.DataSources(1)
提示说“Interface 'Dso.Olapcollection' can not be indexed because it has no default property”
到下面用dsocube.MDStores(1)的时候也是这个错
到底怎么样才会有“default property”呢?怎么该啊?:(