<?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 Delete all resident tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Delete-all-resident-tables/m-p/221486#M74296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There must be a way to do it with a loop through all tables, but I'm not sure exactly how to set it up.&lt;/P&gt;&lt;P&gt;Edit: Whoops. Two people posted solutions while I was trying to figure it out. Never mind!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Sep 2010 23:19:16 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-09-28T23:19:16Z</dc:date>
    <item>
      <title>Delete all resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-all-resident-tables/m-p/221483#M74293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlik-ers,&lt;/P&gt;&lt;P&gt;This might sound a bit wierd. I am looking to drop all tables from the file.&lt;/P&gt;&lt;P&gt;I thought "drop table *;" should do it. but it doesn't.&lt;/P&gt;&lt;P&gt;Can anyone please let me know if there is quick to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rocky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 22:09:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-all-resident-tables/m-p/221483#M74293</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2010-09-28T22:09:12Z</dc:date>
    </item>
    <item>
      <title>Delete all resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-all-resident-tables/m-p/221484#M74294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, here you go:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;let numTables = NoOfTables();&lt;BR /&gt;for i=1 to $(numTables)&lt;BR /&gt; let tt = TableName(0);&lt;BR /&gt; drop table [$(tt)];&lt;BR /&gt;next&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 22:48:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-all-resident-tables/m-p/221484#M74294</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-09-28T22:48:28Z</dc:date>
    </item>
    <item>
      <title>Delete all resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-all-resident-tables/m-p/221485#M74295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try the script below.&lt;/P&gt;&lt;P&gt;LET vAnz=NoOfTables();&lt;BR /&gt;FOR i=1 to vAnz&lt;BR /&gt;LET vTab=TableName(0);&lt;BR /&gt;DROP TABLE $(vTab);&lt;BR /&gt;NEXT i&lt;/P&gt;&lt;P&gt;If thats works, please verify and reply, if not please also give me feedback so we could solve your issue.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 22:50:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-all-resident-tables/m-p/221485#M74295</guid>
      <dc:creator />
      <dc:date>2010-09-28T22:50:52Z</dc:date>
    </item>
    <item>
      <title>Delete all resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-all-resident-tables/m-p/221486#M74296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There must be a way to do it with a loop through all tables, but I'm not sure exactly how to set it up.&lt;/P&gt;&lt;P&gt;Edit: Whoops. Two people posted solutions while I was trying to figure it out. Never mind!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 23:19:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-all-resident-tables/m-p/221486#M74296</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-09-28T23:19:16Z</dc:date>
    </item>
    <item>
      <title>Delete all resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-all-resident-tables/m-p/221487#M74297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vlad and Michael,&lt;/P&gt;&lt;P&gt;Thanks for your time. you both are almost on the same lines.&lt;/P&gt;&lt;P&gt;and yes both of your scripts do work.&lt;/P&gt;&lt;P&gt;Actually I already had something similar to that... was looking if we had a direct way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways... Thanks again...&lt;/P&gt;&lt;P&gt;- Rocky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Sep 2010 13:16:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-all-resident-tables/m-p/221487#M74297</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2010-09-29T13:16:42Z</dc:date>
    </item>
    <item>
      <title>Delete all resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-all-resident-tables/m-p/221488#M74298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the following :&lt;/P&gt;&lt;P&gt;let numTables = NoOfTables();&lt;/P&gt;&lt;P&gt;for i=1 to $(numTables)&lt;/P&gt;&lt;P&gt; let tt = TableName(0);&lt;/P&gt;&lt;P&gt; drop table [$(tt)];&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoOfTables() returns 0 when a qlikview document is opened only and not reloaded.&lt;/P&gt;&lt;P&gt;Is there a way to get the actual number of tables in qlikview document when it is just opened and not reloaded and open.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 06:27:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-all-resident-tables/m-p/221488#M74298</guid>
      <dc:creator />
      <dc:date>2011-12-15T06:27:48Z</dc:date>
    </item>
    <item>
      <title>Delete all resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-all-resident-tables/m-p/221489#M74299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mean it's open without data? What are you trying to accomplish?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 15:46:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-all-resident-tables/m-p/221489#M74299</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2011-12-15T15:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-all-resident-tables/m-p/221490#M74300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to add to the topic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to retain any Tables&amp;nbsp; you can use following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;//Don't use ','&amp;nbsp; it will confuse index function. I used a space as a seperator&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;SET vexemptList='Table1&amp;nbsp;&amp;nbsp; Table2&amp;nbsp;&amp;nbsp; Table3 ';&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LET vNoofTables = NoOfTables();&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;For vTableNo = 0 to vNoofTables-1 ;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; //When one table get deleted the next in line get that number.So always delete first table in the list.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; //For example if there is 4 tables and loop already finished 2 times there will not be any value for TableName(3)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; vTableName = TableName(0) ;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; Let vIndex = Index('$(vexemptList)','$(vTableName)') ;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; If $(vIndex)=0&amp;nbsp; then&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; DROP Table $(vTableName);&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; ENDIF&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;NEXT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 20:45:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-all-resident-tables/m-p/221490#M74300</guid>
      <dc:creator />
      <dc:date>2015-08-11T20:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-all-resident-tables/m-p/2164526#M1225196</link>
      <description>&lt;P&gt;Simple and perfect! Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 16:16:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-all-resident-tables/m-p/2164526#M1225196</guid>
      <dc:creator>Amit_Kakkad_PD</dc:creator>
      <dc:date>2024-01-23T16:16:51Z</dc:date>
    </item>
  </channel>
</rss>

