<?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: Using a Column with reserved words inside ODBC connector in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Using-a-Column-with-reserved-words-inside-ODBC-connector/m-p/4058236#M54323</link>
    <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/721252"&gt;@RaphaelPavanBR&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might consider using double quotes or square brackets to escape reserved words&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Odbc.Query("dsn=default-server", "select \"from\".taxid from clients")&lt;/LI-CODE&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Odbc.Query("dsn=default-server", "select [from].taxid from clients")&lt;/LI-CODE&gt;
&lt;P&gt;This is the related document, you can view this content:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/39871898/how-to-escape-double-quotes-in-a-column-name-when-querying-excel-file-using-odbc" target="_blank"&gt;sql - How to escape double quotes in a column name when querying Excel file using ODBC - Stack Overflow&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blog.crossjoin.co.uk/2018/03/05/character-escape-sequences-in-m/" target="_blank"&gt;blog.crossjoin.co.uk&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jul 2024 07:36:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-07-24T07:36:49Z</dc:date>
    <item>
      <title>Using a Column with reserved words inside ODBC connector</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-a-Column-with-reserved-words-inside-ODBC-connector/m-p/4057131#M54310</link>
      <description>&lt;P&gt;Could someone help me?&lt;/P&gt;&lt;P&gt;I am using ODBC connector to use a server where I query the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fonte = Odbc.Query("dsn=default-server", "select "from".taxid from clients")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this database in which I am only a user and can't change the column names, so that is not an option.&lt;/P&gt;&lt;P&gt;I found in another forum that using #"" could solve the problem, but I already tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[#"from"].taxid&lt;/P&gt;&lt;P&gt;["from"].taxid&lt;/P&gt;&lt;P&gt;[from].taxid&lt;/P&gt;&lt;P&gt;"from".taxid&lt;/P&gt;&lt;P&gt;#"from".taxid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But power bi keeps returning the same error: &lt;EM&gt;"the ',' token was expected".&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The query works when I run it in a SQL only environment using "from".taxid, but Power Bi is not accepting it &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 18:19:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-a-Column-with-reserved-words-inside-ODBC-connector/m-p/4057131#M54310</guid>
      <dc:creator>RaphaelPavanBR</dc:creator>
      <dc:date>2024-07-23T18:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Column with reserved words inside ODBC connector</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-a-Column-with-reserved-words-inside-ODBC-connector/m-p/4058236#M54323</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/721252"&gt;@RaphaelPavanBR&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might consider using double quotes or square brackets to escape reserved words&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Odbc.Query("dsn=default-server", "select \"from\".taxid from clients")&lt;/LI-CODE&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Odbc.Query("dsn=default-server", "select [from].taxid from clients")&lt;/LI-CODE&gt;
&lt;P&gt;This is the related document, you can view this content:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/39871898/how-to-escape-double-quotes-in-a-column-name-when-querying-excel-file-using-odbc" target="_blank"&gt;sql - How to escape double quotes in a column name when querying Excel file using ODBC - Stack Overflow&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blog.crossjoin.co.uk/2018/03/05/character-escape-sequences-in-m/" target="_blank"&gt;blog.crossjoin.co.uk&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 07:36:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-a-Column-with-reserved-words-inside-ODBC-connector/m-p/4058236#M54323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-24T07:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Column with reserved words inside ODBC connector</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-a-Column-with-reserved-words-inside-ODBC-connector/m-p/4071899#M54464</link>
      <description>&lt;P&gt;Neither of your formats worked. Both gave the same error.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Brackets:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RaphaelPavanBR_0-1722445006023.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1142465i825E793EDBAE7440/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RaphaelPavanBR_0-1722445006023.png" alt="RaphaelPavanBR_0-1722445006023.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;counter bars with double quotes:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RaphaelPavanBR_1-1722445064005.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1142468i05707A2A20338818/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RaphaelPavanBR_1-1722445064005.png" alt="RaphaelPavanBR_1-1722445064005.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 16:57:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-a-Column-with-reserved-words-inside-ODBC-connector/m-p/4071899#M54464</guid>
      <dc:creator>RaphaelPavanBR</dc:creator>
      <dc:date>2024-07-31T16:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Column with reserved words inside ODBC connector</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-a-Column-with-reserved-words-inside-ODBC-connector/m-p/4084512#M54611</link>
      <description>&lt;P&gt;After weeks of struggle I finally found out a solution.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;One should use double double quotes to achieve what I wanted. Such as:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;""from"".taxid&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I found it really unusual and not friendly at all, but at least solved my problem.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 14:53:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-a-Column-with-reserved-words-inside-ODBC-connector/m-p/4084512#M54611</guid>
      <dc:creator>RaphaelPavanBR</dc:creator>
      <dc:date>2024-08-06T14:53:02Z</dc:date>
    </item>
  </channel>
</rss>

