dbTalk Databases Forums  

Re: Can CellSet be passed as parameter?

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Re: Can CellSet be passed as parameter? in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chrysan
 
Posts: n/a

Default Re: Can CellSet be passed as parameter? - 08-25-2005 , 10:06 PM






I am using ADOMD.NET (ExecuteCellSet command) to retrieve data in the cube
into CellSet. But, what is the command to retrieve the data in cube into
DataSet directly? Can you give me some help? Thanks.

"Jéjé" wrote:

Quote:
have you try the ADOMD.NET?
you can directly read a cube and take the result in a dataset

"Chrysan" <Chrysan (AT) discussions (DOT) microsoft.com> wrote in message
news:932D4F29-D622-44F7-B86A-440AC72AA486 (AT) microsoft (DOT) com...
I have written a function which take CellSet as
parameter, and convert the CellSet into DataTable, then
return the DataTable. But, it seem like the CellSet
cannot be passed as parameter.

But, when i copy the code in the function and paste in
the same procedure as i get the CellSet, it work.

Can I pass CellSet as parameter?
(all my code is written in VB.Net )

Best Regards,
Chrysan






Reply With Quote
  #2  
Old   
Chrysan
 
Posts: n/a

Default Re: Can CellSet be passed as parameter? - 08-26-2005 , 01:31 AM






When I do such, the system prompt me the following error message:

"The same table (Member) cannot be the child table in two nested
relations."

Can you help? Thanks.


"Jéjé" wrote:

Quote:
maybe like this:
m_tmpReader = cmd.ExecuteXmlReader()
Dim tmpReturnDS As New DataSet
tmpReturnDS.ReadXml(m_tmpReadeÂ*r)



"Chrysan" <Chrysan (AT) discussions (DOT) microsoft.com> wrote in message
news:4B4A4E3C-2900-4BAB-BC52-41D0918A1BF6 (AT) microsoft (DOT) com...
I am using ADOMD.NET (ExecuteCellSet command) to retrieve data in the cube
into CellSet. But, what is the command to retrieve the data in cube into
DataSet directly? Can you give me some help? Thanks.

"Jéjé" wrote:

have you try the ADOMD.NET?
you can directly read a cube and take the result in a dataset

"Chrysan" <Chrysan (AT) discussions (DOT) microsoft.com> wrote in message
news:932D4F29-D622-44F7-B86A-440AC72AA486 (AT) microsoft (DOT) com...
I have written a function which take CellSet as
parameter, and convert the CellSet into DataTable, then
return the DataTable. But, it seem like the CellSet
cannot be passed as parameter.

But, when i copy the code in the function and paste in
the same procedure as i get the CellSet, it work.

Can I pass CellSet as parameter?
(all my code is written in VB.Net )

Best Regards,
Chrysan








Reply With Quote
  #3  
Old   
Jéjé
 
Posts: n/a

Default Re: Can CellSet be passed as parameter? - 08-26-2005 , 07:14 AM



have you a dimension with 2 hierarchies?

"Chrysan" <Chrysan (AT) discussions (DOT) microsoft.com> wrote

Quote:
When I do such, the system prompt me the following error message:

"The same table (Member) cannot be the child table in two nested
relations."

Can you help? Thanks.


"Jéjé" wrote:

maybe like this:
m_tmpReader = cmd.ExecuteXmlReader()
Dim tmpReturnDS As New DataSet
tmpReturnDS.ReadXml(m_tmpReade*r)



"Chrysan" <Chrysan (AT) discussions (DOT) microsoft.com> wrote in message
news:4B4A4E3C-2900-4BAB-BC52-41D0918A1BF6 (AT) microsoft (DOT) com...
I am using ADOMD.NET (ExecuteCellSet command) to retrieve data in the
cube
into CellSet. But, what is the command to retrieve the data in cube
into
DataSet directly? Can you give me some help? Thanks.

"Jéjé" wrote:

have you try the ADOMD.NET?
you can directly read a cube and take the result in a dataset

"Chrysan" <Chrysan (AT) discussions (DOT) microsoft.com> wrote in message
news:932D4F29-D622-44F7-B86A-440AC72AA486 (AT) microsoft (DOT) com...
I have written a function which take CellSet as
parameter, and convert the CellSet into DataTable, then
return the DataTable. But, it seem like the CellSet
cannot be passed as parameter.

But, when i copy the code in the function and paste in
the same procedure as i get the CellSet, it work.

Can I pass CellSet as parameter?
(all my code is written in VB.Net )

Best Regards,
Chrysan










Reply With Quote
  #4  
Old   
Chrysan
 
Posts: n/a

Default Re: Can CellSet be passed as parameter? - 09-01-2005 , 02:20 AM



My mdx statement is as follow:

select {[Measures].[Units Ordered]} on columns , NON EMPTY [Store].[Store
Name].members on rows from Warehouse

Is that a dimension with 2 hierarchies? If so, what should I do to put in
my dataset?

Thanks.



"Jéjé" wrote:

Quote:
have you a dimension with 2 hierarchies?

"Chrysan" <Chrysan (AT) discussions (DOT) microsoft.com> wrote in message
news:7F5425CD-04D2-4084-A183-283F84890FC4 (AT) microsoft (DOT) com...
When I do such, the system prompt me the following error message:

"The same table (Member) cannot be the child table in two nested
relations."

Can you help? Thanks.


"Jéjé" wrote:

maybe like this:
m_tmpReader = cmd.ExecuteXmlReader()
Dim tmpReturnDS As New DataSet
tmpReturnDS.ReadXml(m_tmpReadeÂ*r)



"Chrysan" <Chrysan (AT) discussions (DOT) microsoft.com> wrote in message
news:4B4A4E3C-2900-4BAB-BC52-41D0918A1BF6 (AT) microsoft (DOT) com...
I am using ADOMD.NET (ExecuteCellSet command) to retrieve data in the
cube
into CellSet. But, what is the command to retrieve the data in cube
into
DataSet directly? Can you give me some help? Thanks.

"Jéjé" wrote:

have you try the ADOMD.NET?
you can directly read a cube and take the result in a dataset

"Chrysan" <Chrysan (AT) discussions (DOT) microsoft.com> wrote in message
news:932D4F29-D622-44F7-B86A-440AC72AA486 (AT) microsoft (DOT) com...
I have written a function which take CellSet as
parameter, and convert the CellSet into DataTable, then
return the DataTable. But, it seem like the CellSet
cannot be passed as parameter.

But, when i copy the code in the function and paste in
the same procedure as i get the CellSet, it work.

Can I pass CellSet as parameter?
(all my code is written in VB.Net )

Best Regards,
Chrysan











Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.