<?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>question How to handle special character quote and \ in MS-SQL database Columns in NiFI ExecuteSQL ---NiFi in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-handle-special-character-quote-and-in-MS-SQL-database/m-p/185748#M83287</link>
    <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;I have to extract the data from MSSQL table and one of the table has quoted and special characters in the table column names&lt;/P&gt;&lt;P&gt;as per below details&lt;/P&gt;&lt;P&gt;select&lt;STRONG&gt;  "1stWelcomePackageSentDate",
       "1stWelcomePackageSentValue",
       "2ndReviewDate",
       "2ndReviewValue",
       "2ndWelcomePackageSentDate",
       "2ndWelcomePackageSentValue",
&lt;/STRONG&gt;       AssignedCloser,
       AssignedCloserUpdated,
       AssignedOpener,
       AssignedOpenerUpdated,
       AssignedTo,
       AssignedToUpdated,
       AssignedUnderwriter,
       AssignedUnderwriterUpdated,
       BorrowerConfirmationLetterSentDate,
       BorrowerConfirmationLetterSentValue,
       &lt;STRONG&gt;"Completed/signed4506TDate",
       "Completed/signed4506TValue",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When I execute &lt;STRONG&gt;&amp;lt;select * from XYZ table&lt;/STRONG&gt;&amp;gt; in ExecuteSQL nifi Processor it throwing error as below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SchemaParserException &lt;/STRONG&gt;: illegal initial character in &lt;B style="background-color: initial;"&gt;1stWelcomePackageSentDate&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Considering &amp;lt;&lt;STRONG&gt;select * form XYZ&lt;/STRONG&gt;&amp;gt; may be an issue then I tried MS_SQL [] bracket  column name SQL format  as per below even though it has same error &lt;/P&gt;&lt;P&gt;SELECT&lt;STRONG&gt; [1stWelcomePackageSentDate]
      ,[1stWelcomePackageSentValue]
      ,[2ndReviewDate]
      ,[2ndReviewValue]
      ,[2ndWelcomePackageSentDate]
      ,[2ndWelcomePackageSentValue]&lt;/STRONG&gt;
      ,[AssignedCloser]
      ,[AssignedCloserUpdated]
      ,[AssignedOpener]
      ,[AssignedOpenerUpdated]
      ,[AssignedTo]
      ,[AssignedToUpdated]
      ,[AssignedUnderwriter]
      ,[AssignedUnderwriterUpdated]
      ,[BorrowerConfirmationLetterSentDate]
      ,[BorrowerConfirmationLetterSentValue]
      ,[Completed/signed4506TDate]
      ,&lt;STRONG&gt;[Completed/signed4506TValue]
      ,[CompletePcgReceivedDate]&lt;/STRONG&gt; From &amp;lt;TABLE&amp;gt;&lt;/P&gt;&lt;P&gt;Please help me how to solve this special characterized DB column names in NIFI &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kamlesh&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/63498"&gt;@kkpant75&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 13:41:03 GMT</pubDate>
    <dc:creator>kkpant75</dc:creator>
    <dc:date>2022-09-16T13:41:03Z</dc:date>
    <item>
      <title>How to handle special character quote and \ in MS-SQL database Columns in NiFI ExecuteSQL ---NiFi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-handle-special-character-quote-and-in-MS-SQL-database/m-p/185748#M83287</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;I have to extract the data from MSSQL table and one of the table has quoted and special characters in the table column names&lt;/P&gt;&lt;P&gt;as per below details&lt;/P&gt;&lt;P&gt;select&lt;STRONG&gt;  "1stWelcomePackageSentDate",
       "1stWelcomePackageSentValue",
       "2ndReviewDate",
       "2ndReviewValue",
       "2ndWelcomePackageSentDate",
       "2ndWelcomePackageSentValue",
&lt;/STRONG&gt;       AssignedCloser,
       AssignedCloserUpdated,
       AssignedOpener,
       AssignedOpenerUpdated,
       AssignedTo,
       AssignedToUpdated,
       AssignedUnderwriter,
       AssignedUnderwriterUpdated,
       BorrowerConfirmationLetterSentDate,
       BorrowerConfirmationLetterSentValue,
       &lt;STRONG&gt;"Completed/signed4506TDate",
       "Completed/signed4506TValue",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When I execute &lt;STRONG&gt;&amp;lt;select * from XYZ table&lt;/STRONG&gt;&amp;gt; in ExecuteSQL nifi Processor it throwing error as below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SchemaParserException &lt;/STRONG&gt;: illegal initial character in &lt;B style="background-color: initial;"&gt;1stWelcomePackageSentDate&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Considering &amp;lt;&lt;STRONG&gt;select * form XYZ&lt;/STRONG&gt;&amp;gt; may be an issue then I tried MS_SQL [] bracket  column name SQL format  as per below even though it has same error &lt;/P&gt;&lt;P&gt;SELECT&lt;STRONG&gt; [1stWelcomePackageSentDate]
      ,[1stWelcomePackageSentValue]
      ,[2ndReviewDate]
      ,[2ndReviewValue]
      ,[2ndWelcomePackageSentDate]
      ,[2ndWelcomePackageSentValue]&lt;/STRONG&gt;
      ,[AssignedCloser]
      ,[AssignedCloserUpdated]
      ,[AssignedOpener]
      ,[AssignedOpenerUpdated]
      ,[AssignedTo]
      ,[AssignedToUpdated]
      ,[AssignedUnderwriter]
      ,[AssignedUnderwriterUpdated]
      ,[BorrowerConfirmationLetterSentDate]
      ,[BorrowerConfirmationLetterSentValue]
      ,[Completed/signed4506TDate]
      ,&lt;STRONG&gt;[Completed/signed4506TValue]
      ,[CompletePcgReceivedDate]&lt;/STRONG&gt; From &amp;lt;TABLE&amp;gt;&lt;/P&gt;&lt;P&gt;Please help me how to solve this special characterized DB column names in NIFI &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kamlesh&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/63498"&gt;@kkpant75&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:41:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-handle-special-character-quote-and-in-MS-SQL-database/m-p/185748#M83287</guid>
      <dc:creator>kkpant75</dc:creator>
      <dc:date>2022-09-16T13:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle special character quote and \ in MS-SQL database Columns in NiFI ExecuteSQL ---NiFi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-handle-special-character-quote-and-in-MS-SQL-database/m-p/185749#M83288</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/93291/kkpant75.html" nodeid="93291" target="_blank"&gt;@Kamlesh
 Pant
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In your ExecuteSql processor keep the below property value to &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Normalize Table/Column Names
&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;true&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;ExecuteSQL configs:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="87603-es.png" style="width: 1946px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18858i58CFDEB112B5BBB7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="87603-es.png" alt="87603-es.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;enclose&lt;STRONG&gt; column names in square brackets []&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;If the Answer helped to resolve your issue, &lt;STRONG&gt;Click on Accept button below to accept the answer,&lt;/STRONG&gt; That would be great help to Community users to find solution quickly for these kind of issues.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 08:18:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-handle-special-character-quote-and-in-MS-SQL-database/m-p/185749#M83288</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-08-18T08:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle special character quote and \ in MS-SQL database Columns in NiFI ExecuteSQL ---NiFi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-handle-special-character-quote-and-in-MS-SQL-database/m-p/185750#M83289</link>
      <description>&lt;P&gt;Tons of thanks Shu , I was struggling to find the solution for last 2 days doing all nonsense things like turning off \" in short escape sequencing and others but did not work at all.&lt;/P&gt;&lt;P&gt;Thanks again &lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 23:59:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-handle-special-character-quote-and-in-MS-SQL-database/m-p/185750#M83289</guid>
      <dc:creator>kkpant75</dc:creator>
      <dc:date>2018-09-07T23:59:47Z</dc:date>
    </item>
  </channel>
</rss>

