Connecting to a local cube using Server.Connect(strStringConnectio -
08-29-2006
, 10:28 AM
I am trying to connect to a local cube using
Server.Connect(strStringConnection) method of AMO
strConnectString = "Data Source=MyPath\LocalcubeName.cub"
Server.Connect(strStringConnection)
The result:
Message "The MyPath\LocalcubeName.cub' local cube file cannot be
opened." String
StackTrace " at
Microsoft.AnalysisServices.LocalCubeStream..ctor(S tring cubeFile,
MSMDLOCAL_OPEN_FLAGS settings, Int32 timeout, String password)
at
Microsoft.AnalysisServices.XmlaClient.OpenLocalCub eConnection(ConnectionInfo
connectionInfo)
at Microsoft.AnalysisServices.XmlaClient.Connect(Conn ectionInfo
connectionInfo, Boolean beginSession)" String
Is there any other way to connect to a local cube using AMO?
Thanks. |