<?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 Re: INSERT CSV  DATA INTO MSSQL DB in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/INSERT-CSV-DATA-INTO-MSSQL-DB/m-p/335951#M232073</link>
    <description>&lt;P&gt;You can use a QueryRecord processor before the PutDatabaseRecord.&lt;/P&gt;&lt;P&gt;You can add a relation to the QueryRecord processor with the following associated query:&lt;/P&gt;&lt;PRE&gt;select&lt;BR /&gt;"field one" as field_one,&lt;BR /&gt;"field two" as field_two,&lt;BR /&gt;"field three" as field_three&lt;BR /&gt;from flowfile&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;In the query above you can reference one field names using double-quotes if they have spaces. You can specify an alias for that column, which is the field name that will be used in the output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Andre&lt;/P&gt;</description>
    <pubDate>Thu, 10 Feb 2022 04:11:42 GMT</pubDate>
    <dc:creator>araujo</dc:creator>
    <dc:date>2022-02-10T04:11:42Z</dc:date>
    <item>
      <title>INSERT CSV  DATA INTO MSSQL DB</title>
      <link>https://community.cloudera.com/t5/Support-Questions/INSERT-CSV-DATA-INTO-MSSQL-DB/m-p/335899#M232060</link>
      <description>&lt;P&gt;I have many zip files each containing a csv file. The header of the csv file contain fields and some field names have space between words e.g "field one" instead of "field_one" which is the one in the database.&lt;/P&gt;&lt;P&gt;Please, what is the optima method to change the csv field names to match the ones in the database.&lt;/P&gt;&lt;P&gt;NOTE: I am using MSSQL as the DB. And my NIFI implementation is&lt;/P&gt;&lt;P&gt;1) GetFile : from a repository that contain zip files of very large size&lt;/P&gt;&lt;P&gt;2)UnpackContent: to extract the csv from the zipped file&lt;/P&gt;&lt;P&gt;3) PutDabaseRecord: to persist the csv data into db because of its large size.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-02-09 144059.png" style="width: 801px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/33505i22AC66D96D424E92/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2022-02-09 144059.png" alt="Screenshot 2022-02-09 144059.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-02-09 144015.png" style="width: 800px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/33506iDFD164127DE956CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2022-02-09 144015.png" alt="Screenshot 2022-02-09 144015.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your kind help.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 08:01:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/INSERT-CSV-DATA-INTO-MSSQL-DB/m-p/335899#M232060</guid>
      <dc:creator>rafy</dc:creator>
      <dc:date>2026-04-21T08:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT CSV  DATA INTO MSSQL DB</title>
      <link>https://community.cloudera.com/t5/Support-Questions/INSERT-CSV-DATA-INTO-MSSQL-DB/m-p/335951#M232073</link>
      <description>&lt;P&gt;You can use a QueryRecord processor before the PutDatabaseRecord.&lt;/P&gt;&lt;P&gt;You can add a relation to the QueryRecord processor with the following associated query:&lt;/P&gt;&lt;PRE&gt;select&lt;BR /&gt;"field one" as field_one,&lt;BR /&gt;"field two" as field_two,&lt;BR /&gt;"field three" as field_three&lt;BR /&gt;from flowfile&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;In the query above you can reference one field names using double-quotes if they have spaces. You can specify an alias for that column, which is the field name that will be used in the output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Andre&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 04:11:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/INSERT-CSV-DATA-INTO-MSSQL-DB/m-p/335951#M232073</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-02-10T04:11:42Z</dc:date>
    </item>
  </channel>
</rss>

