<?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 Problem with data type while loading from SQL Server in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-data-type-while-loading-from-SQL-Server/m-p/150974#M28909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! This worked. Just a comment: since I have to include many fields more than the "Contract Number", the syntax for the Load and the Select should be:&lt;/P&gt;&lt;P&gt;Load text([Contract Number]) as [Contract Number], Other_Field1, Other Field3;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;From SQLDATA_TABLE;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Aug 2009 23:44:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-08-28T23:44:42Z</dc:date>
    <item>
      <title>Problem with data type while loading from SQL Server</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-data-type-while-loading-from-SQL-Server/m-p/150970#M28905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! I am trying to load data into a QLikView document but I am facing some problems since it seems that during load, data type are "discarded". Example: I have a "Contract Number" that is a varchar, but when I try to load contract # = "1" and contract #="01", for the document both #'s are the same: "1".&lt;/P&gt;&lt;P&gt;Any ideas will be welcome.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gilberto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2009 23:45:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-data-type-while-loading-from-SQL-Server/m-p/150970#M28905</guid>
      <dc:creator />
      <dc:date>2009-08-03T23:45:17Z</dc:date>
    </item>
    <item>
      <title>Problem with data type while loading from SQL Server</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-data-type-while-loading-from-SQL-Server/m-p/150971#M28906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the text function -- text([Contract Number]) as [Contract Number]) -- to preserve the leading 0.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 01:19:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-data-type-while-loading-from-SQL-Server/m-p/150971#M28906</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-08-04T01:19:52Z</dc:date>
    </item>
    <item>
      <title>Problem with data type while loading from SQL Server</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-data-type-while-loading-from-SQL-Server/m-p/150972#M28907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;Thanks for the advice, but the problem is during data load and in the load script "text" is not recognized as a valid function name.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gilberto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 01:33:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-data-type-while-loading-from-SQL-Server/m-p/150972#M28907</guid>
      <dc:creator />
      <dc:date>2009-08-04T01:33:43Z</dc:date>
    </item>
    <item>
      <title>Problem with data type while loading from SQL Server</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-data-type-while-loading-from-SQL-Server/m-p/150973#M28908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using a preceding load?&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;Load&lt;/B&gt; text([Contract Number]) &lt;B&gt;as&lt;/B&gt; [Contract Number];&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;SQL&lt;/B&gt; &lt;B&gt;SELECT&lt;/B&gt; *&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;FROM&lt;/B&gt; SQLDATA_TABLE;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 03:46:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-data-type-while-loading-from-SQL-Server/m-p/150973#M28908</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-04T03:46:20Z</dc:date>
    </item>
    <item>
      <title>Problem with data type while loading from SQL Server</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-data-type-while-loading-from-SQL-Server/m-p/150974#M28909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! This worked. Just a comment: since I have to include many fields more than the "Contract Number", the syntax for the Load and the Select should be:&lt;/P&gt;&lt;P&gt;Load text([Contract Number]) as [Contract Number], Other_Field1, Other Field3;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;From SQLDATA_TABLE;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 23:44:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-data-type-while-loading-from-SQL-Server/m-p/150974#M28909</guid>
      <dc:creator />
      <dc:date>2009-08-28T23:44:42Z</dc:date>
    </item>
    <item>
      <title>Problem with data type while loading from SQL Server</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-data-type-while-loading-from-SQL-Server/m-p/150975#M28910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, that is the sintax, but '*' works too, but be carfeful, because if you do this, maybe QV gives you an error Duplicate Names are not allowed, because you used an alias with the same name of the original field&lt;/P&gt;&lt;P&gt;This should be work fine&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;text([Contract Number]) as [Contract Number Text]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;From SQLDATA_TABLE;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 23:56:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-data-type-while-loading-from-SQL-Server/m-p/150975#M28910</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2009-08-28T23:56:01Z</dc:date>
    </item>
  </channel>
</rss>

