<?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: my Sql Database issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/my-Sql-Database-issue/m-p/982280#M645357</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You get the table names from the information_schema.tables in mySql:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TTABLE:&lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;P&gt;TABLE_NAME&lt;/P&gt;&lt;P&gt;from information_schema.TABLES&lt;/P&gt;&lt;P&gt;where TABLE_CATALOG = 'SBI_APG_DB' and TABLE_TYPE = 'BASE TABLE';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for lfd = 1 to fieldvaluecount('TABLE_NAME');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; let Table = fieldvalue('TABLE_NAME',$(lfd));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; [$(Table)]:&lt;/P&gt;&lt;P&gt;&amp;nbsp; select * from $(Table);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; let nor=NoOfRows('$(Table)');&lt;/P&gt;&lt;P&gt;&amp;nbsp; if $(#nor)&amp;gt;0 then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; store [$(Table)] into [$(sSaveDir)\$(Table).qvd];&lt;/P&gt;&lt;P&gt;&amp;nbsp; endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; drop table [$(Table)];&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table TTABLE;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Oct 2015 18:22:25 GMT</pubDate>
    <dc:creator>cwolf</dc:creator>
    <dc:date>2015-10-28T18:22:25Z</dc:date>
    <item>
      <title>my Sql Database issue</title>
      <link>https://community.qlik.com/t5/QlikView/my-Sql-Database-issue/m-p/982277#M645354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys ,&lt;/P&gt;&lt;P&gt;How to load All tables in mysql database&amp;nbsp; and convert into Qvds..i'm searched in forum &lt;A href="https://community.qlik.com/docs/DOC-3863"&gt;Load all tables in database dynamically&lt;/A&gt;&lt;/P&gt;&lt;P&gt;based on this i'm generated a script but im getting error....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;this is my table in the database:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM `sbi_apg_db`.`Availability;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is my script:&lt;/STRONG&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;SQLTableList&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD "TABLE_NAME" as&amp;nbsp; TableNames;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT DISTINCT "TABLE_NAME"&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="color: #3d3d3d;"&gt;&lt;STRONG&gt;FROM "sbi_apg_db".COLUMNS;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let vTableCount = NoOfRows('SQLTableList');&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let vTableCountQVD = 'dbo.[' &amp;amp; NoOfRows('SQLTableList') &amp;amp; ']';&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;For i = 0 To $(vTableCount) -1&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET vMyTableName = 'dbo.[' &amp;amp; Peek('TableNames', $(i), 'SQLTableList') &amp;amp; ']';&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET vMyTableNameQVD = Replace(Peek('TableNames', $(i), 'SQLTableList'), ' ', '');&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;$(vMyTableNameQVD):&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT *FROM $(vMyTableName);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;STORE $(vMyTableNameQVD) INTO $(ExtractQVD)$(vMyTableNameQVD).QVD;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DROP Table $(vMyTableNameQVD);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Next 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;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;this is my error:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;see the attachment&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;Please anyone give syntax..for this script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 17:13:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/my-Sql-Database-issue/m-p/982277#M645354</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-28T17:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: my Sql Database issue</title>
      <link>https://community.qlik.com/t5/QlikView/my-Sql-Database-issue/m-p/982278#M645355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your MySQL database doesn't like the SQL statement &lt;EM&gt;SQL SELECT DISTINCT "TABLE_NAME" &lt;/EM&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;EM&gt;FROM "sbi_apg_db".COLUMNS. &lt;/EM&gt;This you have to sort out with your MySQL database. Qlikview only passes that sql statement to the odbc driver. Qlikview doesn't do anything else to or with it.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 17:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/my-Sql-Database-issue/m-p/982278#M645355</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-10-28T17:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: my Sql Database issue</title>
      <link>https://community.qlik.com/t5/QlikView/my-Sql-Database-issue/m-p/982279#M645356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should use&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;select&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; table_name &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;from&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; information_schema&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;tables &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;where&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; table_schema&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;'&amp;lt;your_database_name&amp;gt;'&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 18:21:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/my-Sql-Database-issue/m-p/982279#M645356</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-10-28T18:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: my Sql Database issue</title>
      <link>https://community.qlik.com/t5/QlikView/my-Sql-Database-issue/m-p/982280#M645357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You get the table names from the information_schema.tables in mySql:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TTABLE:&lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;P&gt;TABLE_NAME&lt;/P&gt;&lt;P&gt;from information_schema.TABLES&lt;/P&gt;&lt;P&gt;where TABLE_CATALOG = 'SBI_APG_DB' and TABLE_TYPE = 'BASE TABLE';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for lfd = 1 to fieldvaluecount('TABLE_NAME');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; let Table = fieldvalue('TABLE_NAME',$(lfd));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; [$(Table)]:&lt;/P&gt;&lt;P&gt;&amp;nbsp; select * from $(Table);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; let nor=NoOfRows('$(Table)');&lt;/P&gt;&lt;P&gt;&amp;nbsp; if $(#nor)&amp;gt;0 then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; store [$(Table)] into [$(sSaveDir)\$(Table).qvd];&lt;/P&gt;&lt;P&gt;&amp;nbsp; endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; drop table [$(Table)];&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table TTABLE;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 18:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/my-Sql-Database-issue/m-p/982280#M645357</guid>
      <dc:creator>cwolf</dc:creator>
      <dc:date>2015-10-28T18:22:25Z</dc:date>
    </item>
  </channel>
</rss>

