<?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: MSSQL data Load in Qlikview. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MSSQL-data-Load-in-Qlikview/m-p/408440#M151897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD is for local files (eg Excel). For databases use SELECT. Exactly as you do a query in Query Analyzer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 25 May 2013 12:20:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-25T12:20:53Z</dc:date>
    <item>
      <title>MSSQL data Load in Qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/MSSQL-data-Load-in-Qlikview/m-p/408439#M151896</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;We have implemented a small project using Excel as datasource and nw we are trying to use MSSQL as our database. We are able to connect and retrieve records from MSSQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However we are requried to filter data while loading the script (LOAD command). The following command worked successfully when excel was our datasource but the same script is not working when datarouce is MSSQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SnapShot:&lt;/P&gt;&lt;P&gt;LOAD snapshotdate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; potentialid,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; snap_amount,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; snap_closingdate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ceil(Month(snap_closingdate)/3) as Quarter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sales_stage as snap_salesstage&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Tables\snapshot.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1) where (date(snap_closingdate)-date(snapshotdate)&amp;lt;=90) and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(snap_closingdate&amp;gt;=snapshotdate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Potential:&lt;/P&gt;&lt;P&gt;LOAD potentialid,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; related_to as accountid,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; potentialname,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pot_amount,&lt;/P&gt;&lt;P&gt;Month(pot_closingdate) as P_Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pot_closingdate as pot_closingdate1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; if(floor(pot_closingdate)&amp;gt;=floor(today()) and&amp;nbsp; num(floor(pot_closingdate))-num(floor(today()))&amp;lt;=90,pot_closingdate) as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pot_closingdate,&lt;/P&gt;&lt;P&gt; if(floor(pot_closingdate)&amp;gt;=floor(today()) and num(floor(pot_closingdate))-num(floor(today()))&amp;lt;=90, today()) as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Todaysdate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(floor(pot_closingdate)&amp;gt;=floor(today()) and&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(floor(pot_closingdate))-num(floor(today()))&amp;lt;=90,Month(pot_closingdate)) as PMonth,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; if(monthstart(pot_closingdate)&amp;gt;=addmonths(monthstart(today()),-12),dual( &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month(pot_closingdate)&amp;amp;'-'&amp;amp;year(pot_closingdate),monthstart(pot_closingdate))) as MonthYear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sales_stage as pot_salesstage,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ceil(Month(pot_closingdate)/3) as PQuarter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Tables\potential.xlsx&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;(ooxml, embedded labels, table is Sheet1) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Thanks in Advance.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 May 2013 11:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MSSQL-data-Load-in-Qlikview/m-p/408439#M151896</guid>
      <dc:creator />
      <dc:date>2013-05-25T11:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL data Load in Qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/MSSQL-data-Load-in-Qlikview/m-p/408440#M151897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD is for local files (eg Excel). For databases use SELECT. Exactly as you do a query in Query Analyzer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 May 2013 12:20:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MSSQL-data-Load-in-Qlikview/m-p/408440#M151897</guid>
      <dc:creator />
      <dc:date>2013-05-25T12:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL data Load in Qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/MSSQL-data-Load-in-Qlikview/m-p/408441#M151898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lucian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For what it's worth, note that that is not correct for two reasons: 1) Excel spreadsheets can be opened using OLE DB or ODBC drivers instead of as plain files, and 2) SQL loads do need the LOAD statement even if you don't state it. If you do not use it, then QlikView will put it there for you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you SELECT is what you are pulling from the database, and mut be DB compliant, meaning that variables, syntax, and all that stuff will depend on the DB on the other side, whilst what you LOAD is what you put into QlikView memory. All the dozens of functions available for LOAD are not in the SELECT, as it depends on the driver, permissions, the RDBM version... Think of doing a SELECT * and LOAD only two fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In short, use LOAD always to make sure that what you see in QlikView is what you want to see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 May 2013 22:51:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MSSQL-data-Load-in-Qlikview/m-p/408441#M151898</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2013-05-25T22:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL data Load in Qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/MSSQL-data-Load-in-Qlikview/m-p/408442#M151899</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;Most RDBMs are case sensitive, so if in the database a field is stored as "CUSTOMER" and you LOAD "Customer" you will get an error: QlikView is case sensitive in both names of fields and values. Make sure that you are using the wizard in the Select button once you have set your database connection and tested it successfully with the "Connection" button in the script editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 May 2013 22:54:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MSSQL-data-Load-in-Qlikview/m-p/408442#M151899</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2013-05-25T22:54:09Z</dc:date>
    </item>
  </channel>
</rss>

