<?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 Macro to insert data in database in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-insert-data-in-database/m-p/355124#M131805</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is it possible to export data from Qlkview QVD to a SQL table?&lt;/P&gt;&lt;P&gt;Anybody can help on this..&lt;/P&gt;&lt;P&gt;I have the same fields in the qvd and the SQl table &lt;/P&gt;&lt;P&gt;And I have the connection to the SQL table using ODBC&lt;/P&gt;&lt;P&gt;It will be great if someone can advice me.&lt;/P&gt;&lt;P&gt;Thxs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2012 14:54:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-04-17T14:54:06Z</dc:date>
    <item>
      <title>Macro to insert data in database</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-insert-data-in-database/m-p/355124#M131805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is it possible to export data from Qlkview QVD to a SQL table?&lt;/P&gt;&lt;P&gt;Anybody can help on this..&lt;/P&gt;&lt;P&gt;I have the same fields in the qvd and the SQl table &lt;/P&gt;&lt;P&gt;And I have the connection to the SQL table using ODBC&lt;/P&gt;&lt;P&gt;It will be great if someone can advice me.&lt;/P&gt;&lt;P&gt;Thxs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 14:54:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-insert-data-in-database/m-p/355124#M131805</guid>
      <dc:creator />
      <dc:date>2012-04-17T14:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to insert data in database</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-insert-data-in-database/m-p/355125#M131806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;You can simply write your SQL insert statements in the QV load script, along these lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;ODBC CONNECT TO postgres_server1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;SQL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INSERT INTO table1 VALUES ('2012-08-01', 'SE', 345, 0.345);&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;SQL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INSERT INTO table1 VALUES ('2012-08-01', 'SE', 456, 0.456);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;DISCONNECT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;The above has been verified to work with PostgreSQL, using their standard ODBC 64 bit Unicode driver.&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Please note however that there is a readonly check box in the ODBC driver settings. Obviously, it should not be checked...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Seems there is a bug in the help file relating to this. In QV11 SR1 the help text for "SQL" states:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;EM&gt;"Sending SQL statements which update the database will return an error, since QlikView per definition accesses all ODBC sources in read-only mode."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;AFAICT that is simply not true, at least not when connecting to PostgreSQL databases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;/Göran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 12:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-insert-data-in-database/m-p/355125#M131806</guid>
      <dc:creator>mountaindude</dc:creator>
      <dc:date>2012-08-15T12:32:57Z</dc:date>
    </item>
  </channel>
</rss>

