<?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 Downloading from SQL Server 2008 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Downloading-from-SQL-Server-2008/m-p/320035#M708632</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ok then try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; load text(ProdID) as ProdID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; from xyz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Oct 2011 08:16:06 GMT</pubDate>
    <dc:creator>kaushiknsolanki</dc:creator>
    <dc:date>2011-10-07T08:16:06Z</dc:date>
    <item>
      <title>Downloading from SQL Server 2008</title>
      <link>https://community.qlik.com/t5/QlikView/Downloading-from-SQL-Server-2008/m-p/320030#M708627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm new in QV and hope you can help me with the following issue.&lt;/P&gt;&lt;P&gt;I'm connecting to SQL Server using OLE DB Provider.&lt;/P&gt;&lt;P&gt;This is my SELECT Statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROJID&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM "Kom50_Test".dbo.PROJTABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value in one of rows is '00001.00'. But it is displaying as '00001' (Zeroes after dot are trimmed).&lt;/P&gt;&lt;P&gt;If I'm using WHERE clause&lt;/P&gt;&lt;P&gt;SELECT &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROJID&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM "Kom50_Test".dbo.PROJTABLE&lt;/P&gt;&lt;P&gt;WHERE PROJID = '00001.00'&lt;/P&gt;&lt;P&gt;the same value is displaying as '00001.00'.&lt;/P&gt;&lt;P&gt;How can I get correct value in the result of first statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 07:48:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Downloading-from-SQL-Server-2008/m-p/320030#M708627</guid>
      <dc:creator />
      <dc:date>2011-10-07T07:48:50Z</dc:date>
    </item>
    <item>
      <title>Downloading from SQL Server 2008</title>
      <link>https://community.qlik.com/t5/QlikView/Downloading-from-SQL-Server-2008/m-p/320031#M708628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you get this PROJID field in the QV application then set is Number format in Properties -&amp;gt; select Number -&amp;gt; and precision is 2 or set in place of number fixed to upto 2 decimal place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 07:58:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Downloading-from-SQL-Server-2008/m-p/320031#M708628</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2011-10-07T07:58:27Z</dc:date>
    </item>
    <item>
      <title>Downloading from SQL Server 2008</title>
      <link>https://community.qlik.com/t5/QlikView/Downloading-from-SQL-Server-2008/m-p/320032#M708629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let me explain what actually happen with both of your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; In first code qlikview took the ProjID field as number field and by default the number format is set to 0 decimal thus the decimals are trimmed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; In second case you said where ProjID = '00001.00' , as you have defined the 00001.00&amp;nbsp; in a single quote, qlikview considered this field as a string field and thus it shown you the field as it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Now if you want to have number with 2 decimal, you can get it this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(ProjID,'#,##0.00') as ProjID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQL Select * from XYZ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hope its clear to you now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 08:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Downloading-from-SQL-Server-2008/m-p/320032#M708629</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-10-07T08:02:05Z</dc:date>
    </item>
    <item>
      <title>Downloading from SQL Server 2008</title>
      <link>https://community.qlik.com/t5/QlikView/Downloading-from-SQL-Server-2008/m-p/320033#M708630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; properties-&amp;gt;number-&amp;gt; fixed to and type 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it show you ressult till 2 precision&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 08:11:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Downloading-from-SQL-Server-2008/m-p/320033#M708630</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-10-07T08:11:02Z</dc:date>
    </item>
    <item>
      <title>Downloading from SQL Server 2008</title>
      <link>https://community.qlik.com/t5/QlikView/Downloading-from-SQL-Server-2008/m-p/320034#M708631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry, I forgot to specify, that PROJID is a text field.&lt;/P&gt;&lt;P&gt;The other values, such as '00001.01', '00001.02' etc., are displayed correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 08:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Downloading-from-SQL-Server-2008/m-p/320034#M708631</guid>
      <dc:creator />
      <dc:date>2011-10-07T08:12:57Z</dc:date>
    </item>
    <item>
      <title>Downloading from SQL Server 2008</title>
      <link>https://community.qlik.com/t5/QlikView/Downloading-from-SQL-Server-2008/m-p/320035#M708632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ok then try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; load text(ProdID) as ProdID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; from xyz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 08:16:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Downloading-from-SQL-Server-2008/m-p/320035#M708632</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-10-07T08:16:06Z</dc:date>
    </item>
    <item>
      <title>Downloading from SQL Server 2008</title>
      <link>https://community.qlik.com/t5/QlikView/Downloading-from-SQL-Server-2008/m-p/320036#M708633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Function text() doesn't work in SELECT statement. Standard SQL functions CAST and CONVERT also don't solve the problem.&lt;/P&gt;&lt;P&gt;Really, QV treats text as a numeric value.&lt;/P&gt;&lt;P&gt;If I'm selecting&lt;/P&gt;&lt;P&gt;'P'+PROJID as PROJID&lt;/P&gt;&lt;P&gt;values are correctly dispayed.&lt;/P&gt;&lt;P&gt;It's acceptable solution, but the problem still exists.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 10:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Downloading-from-SQL-Server-2008/m-p/320036#M708633</guid>
      <dc:creator />
      <dc:date>2011-10-07T10:14:16Z</dc:date>
    </item>
    <item>
      <title>Downloading from SQL Server 2008</title>
      <link>https://community.qlik.com/t5/QlikView/Downloading-from-SQL-Server-2008/m-p/320037#M708634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load text(ProdID) as ProdID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQL select * from xyz;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 10:21:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Downloading-from-SQL-Server-2008/m-p/320037#M708634</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-10-07T10:21:33Z</dc:date>
    </item>
  </channel>
</rss>

