I have a VB6 program that uses Analysis Services 2000 DSO to Automatically Process an AS2000 Database. I ran the Upgrade Wizard in VS2005 for Visual Basic on this VB6 program but the result has an error I can't find how to correct.
Here is the original code -
Dim mdDatabase As DSO.MDStore
Dim dsoServer As DSO.Server
Set dsoServer = New DSO.Server
dsoServer.Connect ("CubeServer")
Set mdDatabase = dsoServer.MDStores("TestCubes")
mdDatabase.Process
Here is the code as a result of the 2005 upgrade wizard -
Dim mdDatabase As DSO.MDStore
Dim dsoServer As DSO.Server
Set dsoServer = New DSO.Server
dsoServer.Connect ("CubeServer")
mdDatabase = dsoServer.MDStores("TestCubes")
The above line displays the following error: 'DSO.OlapCollection Cannot be indexed'
mdDatabase.Process
Can anyone tell me what's wrong? I can't use AMO because it doesn't work against AS2000. How do I select a specific AS2000 Databse with VB in VS2005 and process it?
Thanks,
JohnWC
Try posting this question on the on the Visual Basic General discussion forum.
Edward.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
I did find the answer in the OLAP Managed Newsgroup. For anyone who may be interested, the following code line works.
mdDatabase = dsoServer.MDStores.Item("TestCubes")
JohnWC
No comments:
Post a Comment