<?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: T-SQL #table in Qlikview Load Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/T-SQL-table-in-Qlikview-Load-Script/m-p/1018133#M641878</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter&lt;/P&gt;&lt;P&gt;The main issue is that I have read-only access to the server so I don't have the luxury of creating SP's or views at all.&amp;nbsp; For now I've exported the results to CSV and read them into a QVD (with some ETL).&amp;nbsp; I suspect that QV may be using two different sessions, since the #table ALWAYS contains nothing.&amp;nbsp; I've used the same query in SSMS and got results so it's not a syntax issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks though!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Feb 2016 11:43:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-01T11:43:50Z</dc:date>
    <item>
      <title>T-SQL #table in Qlikview Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/T-SQL-table-in-Qlikview-Load-Script/m-p/1018127#M641872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;Hitting my head against a wall here, but can't seem to use #table in a script to load data from SQl 2008R2.&amp;nbsp; The query just seems to return no data, and produces no errors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Jan 2016 08:55:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/T-SQL-table-in-Qlikview-Load-Script/m-p/1018127#M641872</guid>
      <dc:creator />
      <dc:date>2016-01-30T08:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: T-SQL #table in Qlikview Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/T-SQL-table-in-Qlikview-Load-Script/m-p/1018128#M641873</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;Check whether your ODBC connection test is ok or not,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;open QlikView&lt;/LI&gt;&lt;LI&gt;go to File - Edit Script&lt;/LI&gt;&lt;LI&gt;for database choose OLE DB&lt;/LI&gt;&lt;LI&gt;check Force 32 Bit (i have PS on 64bit win)&lt;/LI&gt;&lt;LI&gt;Check Relative Paths&lt;/LI&gt;&lt;LI&gt;click button Connect&lt;/LI&gt;&lt;LI&gt;In Data Link Properties, on Provider window, choose "Microsoft OLE DB Provider for SQL Server"&lt;/LI&gt;&lt;LI&gt;In Data Link Properties, on Connection window, choose server name&lt;/LI&gt;&lt;LI&gt;use Win NT integrated security or specific user name and password&lt;/LI&gt;&lt;LI&gt;Click button: Test Connection&lt;/LI&gt;&lt;LI&gt;Then on Edit script section, choose Select button, and choose appropriate Database and Owner to select from tables in database.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1804"&gt;Video: Load Data from ODBC&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Jan 2016 20:24:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/T-SQL-table-in-Qlikview-Load-Script/m-p/1018128#M641873</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-01-30T20:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: T-SQL #table in Qlikview Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/T-SQL-table-in-Qlikview-Load-Script/m-p/1018129#M641874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/jarppiduplessis"&gt;jarppiduplessis&lt;/A&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This query run in data base own of the MS-SQL Server? Maybe the problem is in the query clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 10:32:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/T-SQL-table-in-Qlikview-Load-Script/m-p/1018129#M641874</guid>
      <dc:creator>jonas_rezende</dc:creator>
      <dc:date>2016-02-01T10:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: T-SQL #table in Qlikview Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/T-SQL-table-in-Qlikview-Load-Script/m-p/1018130#M641875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;#table will only be visible to the account that created the connection and while the session lasts. Where did you create this temporary table? During a QlikView SQL session?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 10:37:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/T-SQL-table-in-Qlikview-Load-Script/m-p/1018130#M641875</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-02-01T10:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: T-SQL #table in Qlikview Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/T-SQL-table-in-Qlikview-Load-Script/m-p/1018131#M641876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Peter,&lt;/P&gt;&lt;P&gt;Yes.&amp;nbsp; So something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableName:&lt;/P&gt;&lt;P&gt;SQL SELECT something INTO #temptable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM #temptable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for some reason no data comes back.&amp;nbsp; My question pertains more to the ability to use #tables in Qlikview SQL Script.&amp;nbsp; Is it possible or is it known not to work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 10:41:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/T-SQL-table-in-Qlikview-Load-Script/m-p/1018131#M641876</guid>
      <dc:creator />
      <dc:date>2016-02-01T10:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: T-SQL #table in Qlikview Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/T-SQL-table-in-Qlikview-Load-Script/m-p/1018132#M641877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That should work allright if you use a sequence like that in a stored procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm not sure about this working in a QlikView session as the DBMS may consider this to be two sessions. Control returns to QlikView between the two SELECTs. Why don't you use a resident table as temporary storage? Do you expect the temporary table to be exceptionally large?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 11:07:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/T-SQL-table-in-Qlikview-Load-Script/m-p/1018132#M641877</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-02-01T11:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: T-SQL #table in Qlikview Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/T-SQL-table-in-Qlikview-Load-Script/m-p/1018133#M641878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter&lt;/P&gt;&lt;P&gt;The main issue is that I have read-only access to the server so I don't have the luxury of creating SP's or views at all.&amp;nbsp; For now I've exported the results to CSV and read them into a QVD (with some ETL).&amp;nbsp; I suspect that QV may be using two different sessions, since the #table ALWAYS contains nothing.&amp;nbsp; I've used the same query in SSMS and got results so it's not a syntax issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks though!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 11:43:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/T-SQL-table-in-Qlikview-Load-Script/m-p/1018133#M641878</guid>
      <dc:creator />
      <dc:date>2016-02-01T11:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: T-SQL #table in Qlikview Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/T-SQL-table-in-Qlikview-Load-Script/m-p/1018134#M641879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A bit late but you could do the same thing using a CTE.&lt;/P&gt;&lt;P&gt;Using your example:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TableName:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;with temptable as (&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;select something &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from something )&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//for more tables &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,temptable2 as(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;select something &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from something)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SELECT * &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM temptable&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;join temptable2&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 15:26:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/T-SQL-table-in-Qlikview-Load-Script/m-p/1018134#M641879</guid>
      <dc:creator />
      <dc:date>2016-03-04T15:26:52Z</dc:date>
    </item>
  </channel>
</rss>

