<?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: SQL Load Script - Change Data Type in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/SQL-Load-Script-Change-Data-Type/m-p/1603303#M44648</link>
    <description>&lt;P&gt;try this :&lt;/P&gt;&lt;P&gt;//Use text(), num() and preceding LOAD.&amp;nbsp;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'DATABASE';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TABLE_FINAL:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;TEXT(NAME) AS NAME,&lt;/P&gt;&lt;P&gt;NUM(AGE) AS AGE,&lt;/P&gt;&lt;P&gt;TEXT(TEXT) AS TEXT,&lt;/P&gt;&lt;P&gt;NUM(NUM) AS NUM&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;SQL SELECT&lt;/P&gt;&lt;P&gt;NAME,&lt;/P&gt;&lt;P&gt;AGE,&lt;/P&gt;&lt;P&gt;TEXT,&lt;/P&gt;&lt;P&gt;NUM&lt;/P&gt;&lt;P&gt;FROM TABLE.THING;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;saludos!!!&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jul 2019 15:59:23 GMT</pubDate>
    <dc:creator>Marcos_rv</dc:creator>
    <dc:date>2019-07-17T15:59:23Z</dc:date>
    <item>
      <title>SQL Load Script - Change Data Type</title>
      <link>https://community.qlik.com/t5/App-Development/SQL-Load-Script-Change-Data-Type/m-p/1603297#M44647</link>
      <description>&lt;P&gt;I have a SQL query that I developed outside of Qlik and am using in the data load editor to pull my data through a data connection. It is a direct copy/paste. I load the connection using "LIB CONNECT TO 'DATABASE'; command. One of my fields needs to be displayed as a TEXT function, but some of the values are being read as a number so my trailing 0's are getting dropped off. How do I convert the data type from a SQL load to be text only?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'DATABASE';&lt;/P&gt;&lt;P&gt;&amp;nbsp;SQL SELECT&lt;/P&gt;&lt;P&gt;[CODE]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 20:32:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SQL-Load-Script-Change-Data-Type/m-p/1603297#M44647</guid>
      <dc:creator>mskusace</dc:creator>
      <dc:date>2021-12-22T20:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Load Script - Change Data Type</title>
      <link>https://community.qlik.com/t5/App-Development/SQL-Load-Script-Change-Data-Type/m-p/1603303#M44648</link>
      <description>&lt;P&gt;try this :&lt;/P&gt;&lt;P&gt;//Use text(), num() and preceding LOAD.&amp;nbsp;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'DATABASE';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TABLE_FINAL:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;TEXT(NAME) AS NAME,&lt;/P&gt;&lt;P&gt;NUM(AGE) AS AGE,&lt;/P&gt;&lt;P&gt;TEXT(TEXT) AS TEXT,&lt;/P&gt;&lt;P&gt;NUM(NUM) AS NUM&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;SQL SELECT&lt;/P&gt;&lt;P&gt;NAME,&lt;/P&gt;&lt;P&gt;AGE,&lt;/P&gt;&lt;P&gt;TEXT,&lt;/P&gt;&lt;P&gt;NUM&lt;/P&gt;&lt;P&gt;FROM TABLE.THING;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;saludos!!!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 15:59:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SQL-Load-Script-Change-Data-Type/m-p/1603303#M44648</guid>
      <dc:creator>Marcos_rv</dc:creator>
      <dc:date>2019-07-17T15:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Load Script - Change Data Type</title>
      <link>https://community.qlik.com/t5/App-Development/SQL-Load-Script-Change-Data-Type/m-p/1603324#M44650</link>
      <description>&lt;P&gt;I appreciate the reply. Do I need to load ALL the fields in the table or can I just load the ones I need to use?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 17:16:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SQL-Load-Script-Change-Data-Type/m-p/1603324#M44650</guid>
      <dc:creator>mskusace</dc:creator>
      <dc:date>2019-07-17T17:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Load Script - Change Data Type</title>
      <link>https://community.qlik.com/t5/App-Development/SQL-Load-Script-Change-Data-Type/m-p/1603325#M44651</link>
      <description>&lt;P&gt;I'm using data from about 6 tables so it ends up being a lot of LOAD statements and fields. That was the intention of me asking.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 17:17:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SQL-Load-Script-Change-Data-Type/m-p/1603325#M44651</guid>
      <dc:creator>mskusace</dc:creator>
      <dc:date>2019-07-17T17:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Load Script - Change Data Type</title>
      <link>https://community.qlik.com/t5/App-Development/SQL-Load-Script-Change-Data-Type/m-p/1603331#M44652</link>
      <description>&lt;P&gt;&lt;SPAN&gt;you should use that string transformation only in the fields you need, it is not necessary that they all be. regards!!!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 17:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SQL-Load-Script-Change-Data-Type/m-p/1603331#M44652</guid>
      <dc:creator>Marcos_rv</dc:creator>
      <dc:date>2019-07-17T17:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Load Script - Change Data Type</title>
      <link>https://community.qlik.com/t5/App-Development/SQL-Load-Script-Change-Data-Type/m-p/1603333#M44653</link>
      <description>&lt;P&gt;Would something like this work:&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'DATABASE';&lt;/P&gt;&lt;P&gt;TABLE_FINAL&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;TEXT(NAME) AS NAME;&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;NAME,&lt;/P&gt;&lt;P&gt;AGE,&lt;/P&gt;&lt;P&gt;TEXT&lt;/P&gt;&lt;P&gt;FROM TABLE.THING&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 17:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SQL-Load-Script-Change-Data-Type/m-p/1603333#M44653</guid>
      <dc:creator>mskusace</dc:creator>
      <dc:date>2019-07-17T17:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Load Script - Change Data Type</title>
      <link>https://community.qlik.com/t5/App-Development/SQL-Load-Script-Change-Data-Type/m-p/1603342#M44654</link>
      <description>&lt;P&gt;&lt;BR /&gt;nope, you have to declare all the fields, that you are going to use, maybe you do not want to transform the rest but if or if you have to declare them.&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'DATABASE';&lt;BR /&gt;FINAL TABLE&lt;BR /&gt;LOAD&lt;BR /&gt;TEXT (NAME) AS NAME,&lt;BR /&gt;AGE,&lt;BR /&gt;TEXT;&lt;BR /&gt;SQL SELECT&lt;BR /&gt;YAM,&lt;BR /&gt;AGE,&lt;BR /&gt;TEXT&lt;BR /&gt;FROM TABLE.THING&lt;/P&gt;&lt;P&gt;although if in other tables the rest of the fields need transformation it is fine that you only use the sql declaration without the load.&lt;/P&gt;&lt;P&gt;Regards!!!!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 18:06:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SQL-Load-Script-Change-Data-Type/m-p/1603342#M44654</guid>
      <dc:creator>Marcos_rv</dc:creator>
      <dc:date>2019-07-17T18:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Load Script - Change Data Type</title>
      <link>https://community.qlik.com/t5/App-Development/SQL-Load-Script-Change-Data-Type/m-p/1603353#M44656</link>
      <description>&lt;P&gt;Got it! Thanks. My leading 0s were actually not getting dropped, so I just used the "TEXT" function in my visualization itself to change the data type so it is all good now! I appreciate your assistance!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 18:50:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SQL-Load-Script-Change-Data-Type/m-p/1603353#M44656</guid>
      <dc:creator>mskusace</dc:creator>
      <dc:date>2019-07-17T18:50:20Z</dc:date>
    </item>
  </channel>
</rss>

