dbTalk Databases Forums  

Re: Data Types of columns in dataset when using AdomdDataAdapter

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


Discuss Re: Data Types of columns in dataset when using AdomdDataAdapter in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Raman Iyer [MS]
 
Posts: n/a

Default Re: Data Types of columns in dataset when using AdomdDataAdapter - 10-07-2005 , 01:33 PM






[including the OLAP newsgroup for expert opinions]

I believe this is as expected since the cell values are variants.
--
-Raman Iyer
SQL Server Data Mining
[This posting is provided "AS IS" with no warranties, and confers no
rights.]

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

Quote:
Hi there

I am executing an mdx query using adomd.net as follows:
AdomdDataAdapter adapter = new AdomdDataAdapter(query, connection.Value);
adapter.Fill(data);

I get the data back correctly, but all the columns have DataType of
'System.Object ' and not as expected.

Why is this happening?



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.