<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Getting field datatypes from an SQL Analysis Services MDX SELECT query using .NET AdomdClient in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Getting-field-datatypes-from-an-SQL-Analysis-Services-MDX-SELECT/m-p/3642801#M48796</link>
    <description>&lt;P&gt;I guess it's related to both and I don't think Adomd client is doing anything significant except for retrieving schema from SQL server. But anyway, I will post there as well.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jan 2024 07:06:19 GMT</pubDate>
    <dc:creator>mihies</dc:creator>
    <dc:date>2024-01-17T07:06:19Z</dc:date>
    <item>
      <title>Getting field datatypes from an SQL Analysis Services MDX SELECT query using .NET AdomdClient</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Getting-field-datatypes-from-an-SQL-Analysis-Services-MDX-SELECT/m-p/3641344#M48785</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Let's say I have this MDX query against SQL Server's Analysis Service Adventure Works sample:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;select&lt;/SPAN&gt; [Measures].[Customer Count] &lt;SPAN class=""&gt;on&lt;/SPAN&gt; columns, 
[&lt;SPAN class=""&gt;Date&lt;/SPAN&gt;].[Calendar Quarter &lt;SPAN class=""&gt;of&lt;/SPAN&gt; &lt;SPAN class=""&gt;Year&lt;/SPAN&gt;] &lt;SPAN class=""&gt;on&lt;/SPAN&gt; &lt;SPAN class=""&gt;rows&lt;/SPAN&gt;
&lt;SPAN class=""&gt;from&lt;/SPAN&gt; [Adventure Works]&lt;/PRE&gt;&lt;P&gt;And I execute it as:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;var&lt;/SPAN&gt; reader = &lt;SPAN class=""&gt;new&lt;/SPAN&gt; AdomdCommand(&lt;SPAN class=""&gt;"..."&lt;/SPAN&gt;).ExecuteReader();&lt;/PRE&gt;&lt;P&gt;I would expect that&lt;/P&gt;&lt;PRE&gt;reader.GetFieldType(&lt;SPAN class=""&gt;0&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;P&gt;would return System.Int32, but it returns System.Object. The same is true if I query schema with reader.GetSchemaTable() which is no surprise as I assume the former gets data from later. I also assume this is probably not an exclusive .NET issue. The same is at least true for .NET Framework.&lt;/P&gt;&lt;P&gt;So, is there a way I can get those types when I do a query?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 16 Jan 2024 15:40:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Getting-field-datatypes-from-an-SQL-Analysis-Services-MDX-SELECT/m-p/3641344#M48785</guid>
      <dc:creator>mihies</dc:creator>
      <dc:date>2024-01-16T15:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Getting field datatypes from an SQL Analysis Services MDX SELECT query using .NET AdomdClient</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Getting-field-datatypes-from-an-SQL-Analysis-Services-MDX-SELECT/m-p/3642290#M48789</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/675424"&gt;@mihies&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;According to your description, I think this requirement is more related to use ADO.NET to getting data from SQL server.&lt;/P&gt;
&lt;P&gt;For this scenario, I'd like to suggest you post those at the forum to get further support.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/answers/tags/97/dotnet" target="_blank"&gt;.NET - Microsoft Q&amp;amp;A&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 02:18:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Getting-field-datatypes-from-an-SQL-Analysis-Services-MDX-SELECT/m-p/3642290#M48789</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-17T02:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Getting field datatypes from an SQL Analysis Services MDX SELECT query using .NET AdomdClient</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Getting-field-datatypes-from-an-SQL-Analysis-Services-MDX-SELECT/m-p/3642801#M48796</link>
      <description>&lt;P&gt;I guess it's related to both and I don't think Adomd client is doing anything significant except for retrieving schema from SQL server. But anyway, I will post there as well.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 07:06:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Getting-field-datatypes-from-an-SQL-Analysis-Services-MDX-SELECT/m-p/3642801#M48796</guid>
      <dc:creator>mihies</dc:creator>
      <dc:date>2024-01-17T07:06:19Z</dc:date>
    </item>
  </channel>
</rss>

