<?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 Loading tables in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Loading-tables/m-p/1203923#M22921</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now I have a file on the qlik sense desktop that I need to load all its tables in to the app so I can preview it and work on it. &lt;/P&gt;&lt;P&gt;the problem is that it has almost a 100 table with tons of rows so I am looking for a SQL Load statement to select the top 100 rows from each table at once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I am using this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Top 100 *&lt;/P&gt;&lt;P&gt;From XYZ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but that will take for ever plus typing mistakes can occur. so is there a one statement I can use. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note : that there is no qvd file the only source currently present is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'AG1';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance. hope somebody can help soon. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Noha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2016 21:37:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-10-18T21:37:13Z</dc:date>
    <item>
      <title>Loading tables</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-tables/m-p/1203923#M22921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now I have a file on the qlik sense desktop that I need to load all its tables in to the app so I can preview it and work on it. &lt;/P&gt;&lt;P&gt;the problem is that it has almost a 100 table with tons of rows so I am looking for a SQL Load statement to select the top 100 rows from each table at once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I am using this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Top 100 *&lt;/P&gt;&lt;P&gt;From XYZ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but that will take for ever plus typing mistakes can occur. so is there a one statement I can use. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note : that there is no qvd file the only source currently present is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'AG1';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance. hope somebody can help soon. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Noha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 21:37:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-tables/m-p/1203923#M22921</guid>
      <dc:creator />
      <dc:date>2016-10-18T21:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Loading tables</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-tables/m-p/1203924#M22922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, there's no one statement that you can use. You'll have to use an odbc connection and the odbc command SQLTABLES to create a table with a list of all the tables. Then you have to iterate through that new table and for each record in that table get the name of the source table you want to load from your source database and load the first 100 records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this maybe:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LIB CONNECT TO 'AG1';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TableList:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SQLTABLES;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;For i = 1 to NoOfRows('TableList')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vTableName = Trim(FieldValue('TABLE_NAME',$(i)));&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FIRST 100&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; SQL SELECT * FROM $(vTableName);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Next&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DROP TABLE TableList;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 13:53:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-tables/m-p/1203924#M22922</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-10-19T13:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Loading tables</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-tables/m-p/1203925#M22923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply but connecting to Sql is an option I can't even try &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 14:30:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-tables/m-p/1203925#M22923</guid>
      <dc:creator />
      <dc:date>2016-10-19T14:30:20Z</dc:date>
    </item>
  </channel>
</rss>

