<?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: Loading Data from SQL Server in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Loading-Data-from-SQL-Server/m-p/1057620#M1626</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, because your select statement does not create the fields listed in the preceding load as I mentioned earlier. Your sql statement will return the fields COLUMN0000, &lt;SPAN style="font-size: 13.3333px;"&gt;COLUMN0001 and &lt;SPAN style="font-size: 13.3333px;"&gt;COLUMN0002.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Mar 2016 18:59:25 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-03-11T18:59:25Z</dc:date>
    <item>
      <title>Loading Data from SQL Server</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Loading-Data-from-SQL-Server/m-p/1057615#M1621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to replicate a dashboard that we have on another platform. I was able to import the data but I am having problems with parsing the data. How do I get Qlik to use the correct data? Thanx in advance for any help offered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fields that I'm using are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;R2MCU,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; R2DCTO,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; R2TQTY,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; R2PSTB,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; R2DTPT&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the SQL statement from the existing dashboard is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SELECT DISTINCT&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; COUNT( DISTINCT R2URAB ) AS COLUMN0000,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; COUNT( * ) AS COLUMN0001,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; SUM( R2TQTY ) / 100 AS COLUMN0002 &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; DCLINK.dbo.F4611 F4611 &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WHERE &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; R2TYFL = '2'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND R2MCU = '&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; AND R2DTPT =( &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; SELECT &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; max( F4611.R2DTPT ) &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; FROM &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; F4611 F4611 &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; AND R2PSTB = '340'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; AND R2DCTO NOT IN( 'SU', 'SY', 'SP', 'SR', 'S5', 'S1', 'S2', 'SE', 'SJ', 'SH', 'SZ' )&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 16:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Loading-Data-from-SQL-Server/m-p/1057615#M1621</guid>
      <dc:creator />
      <dc:date>2016-03-11T16:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Data from SQL Server</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Loading-Data-from-SQL-Server/m-p/1057616#M1622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The fields you're loading in Qlik Sense are COLUMN0000, COLUMN0001 and COLUMN0002:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: inherit; font-weight: inherit;"&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM&gt;SELECT DISTINCT &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM&gt;&amp;nbsp; COUNT( DISTINCT R2URAB ) AS &lt;STRONG&gt;COLUMN0000&lt;/STRONG&gt;,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM&gt;&amp;nbsp; COUNT( * ) AS &lt;STRONG&gt;COLUMN0001&lt;/STRONG&gt;,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM&gt;&amp;nbsp; SUM( R2TQTY ) / 100 AS &lt;STRONG&gt;COLUMN0002&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM&gt;FROM ...etc&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If you want to use other fields then you have to load or create them first.&lt;SPAN style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 17:18:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Loading-Data-from-SQL-Server/m-p/1057616#M1622</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-11T17:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Data from SQL Server</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Loading-Data-from-SQL-Server/m-p/1057617#M1623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gysbert, Thank you for the input but how do I deal with the WHERE clause?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 17:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Loading-Data-from-SQL-Server/m-p/1057617#M1623</guid>
      <dc:creator />
      <dc:date>2016-03-11T17:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Data from SQL Server</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Loading-Data-from-SQL-Server/m-p/1057618#M1624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's part of the sql statement and will be executed by the database server that Qlik Sense sends your sql statement to. Qlik Sense is not processing it. The database server deals with it. You don't have to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 18:26:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Loading-Data-from-SQL-Server/m-p/1057618#M1624</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-11T18:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Data from SQL Server</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Loading-Data-from-SQL-Server/m-p/1057619#M1625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, in this screen I would replace the plain SQL SELECT statement with my SQL statement, is that correct?&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Qlik_DataConnector.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/117736_Qlik_DataConnector.png" style="height: 349px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 18:33:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Loading-Data-from-SQL-Server/m-p/1057619#M1625</guid>
      <dc:creator />
      <dc:date>2016-03-11T18:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Data from SQL Server</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Loading-Data-from-SQL-Server/m-p/1057620#M1626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, because your select statement does not create the fields listed in the preceding load as I mentioned earlier. Your sql statement will return the fields COLUMN0000, &lt;SPAN style="font-size: 13.3333px;"&gt;COLUMN0001 and &lt;SPAN style="font-size: 13.3333px;"&gt;COLUMN0002.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 18:59:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Loading-Data-from-SQL-Server/m-p/1057620#M1626</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-11T18:59:25Z</dc:date>
    </item>
  </channel>
</rss>

