all groups > sql server data warehouse > august 2003 >
You're in the

sql server data warehouse

group:

error running MDX query in vb application



error running MDX query in vb application liv
8/7/2003 12:27:01 AM
sql server data warehouse: Hi!
I generated an MDX statement in my vb.6 application. The
query works when i run it in the MDX Sample Application.
However, when I tried running it in my vb6 application, I
keep getting this error and when I checked my cellset's
state, it is equal to 1. What am I doing wrong? Please
help.

Thanks in advance.


Liv

sample code:

everything works until oCellSet.Open strMDX -- strMDX is
my MDX query.

m_strMDXConnectString = _
"Provider=MSOLAP.2;USER ID=user;Password=123;"
& _
"DATA SOURCE=server01;INITIAL
CATALOG=sampleCUBE;"

Dim oCellSet As New ADOMD.Cellset
Set oCellSet = New ADOMD.Cellset

oCellSet.ActiveConnection = m_strMDXConnectString

oCellSet.Open strMDX
Debug.Print strMDX

MsgBox "state = " & oCellSet.State
Re: error running MDX query in vb application Matt Carroll [MS]
8/8/2003 10:50:04 AM
What is the error you are getting and what line is it occuring on?

- Matt Carroll
--
This posting is provided "AS IS" with no warranties, and confers no rights.

[quoted text, click to view]

AddThis Social Bookmark Button