<?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: Can't create table to database using ODBC in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-t-create-table-to-database-using-ODBC/m-p/1017703#M942822</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;Qlikview is a Dashboard tool which pulls data from the datasources and on top create the graphs on it.&amp;nbsp; I am not sure why you are looking to create a new table and load the existing data and then reading the data from the new table?&amp;nbsp; Instead you can directly use the query to pull the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the necessity to create the new table?&amp;nbsp; To create the new table to need to do some special settings to write back to database check below link for some sample script to insert records into database table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-6655"&gt;Inserting records into Database using Qlikview Script&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jan 2016 00:46:39 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2016-01-19T00:46:39Z</dc:date>
    <item>
      <title>Can't create table to database using ODBC</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-create-table-to-database-using-ODBC/m-p/1017697#M942816</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;&lt;/P&gt;&lt;P&gt;I am using qlikview to create a table in my Oracle database VIA OLEDB or ODBC -Microsoft Oracle Service .the script for creating table the table in Oracle database contains a query that querying two existing tables (Customer and Order table),The Customer table is available from the same database as where the new table will be stored while the Order table is stored from another Oracle Database that is linked to the Customer database from the Customer database server (i.e. for this connection, Customer database is the client while the Order database is the server).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and following is my SQL script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sql&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create table Cust_Order as&lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C.Customer_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C.Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; O.Order_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; O.Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; O.ProductID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; O.Amount&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer_table C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left join Order_table@OrderDB O on C.Customer_iD = O.Customer_ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Load the newly created table into Qlikview&lt;/P&gt;&lt;P&gt;CUST_ORDER:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select * from Cust_Order;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, my querstion is I don't know why my Qlikview returned ODBC ORA-00942 "Table Not found" error message while running the Create table statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: both Customer_table or Order_table are existed, but just in a different database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is my system configuration:&lt;/P&gt;&lt;P&gt;Cliekt&lt;/P&gt;&lt;P&gt;Qlikview 11&lt;/P&gt;&lt;P&gt;Java 7.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Server:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both DB using Oracle 12G&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the same query executed successfully from Oracle SQL Developer 4.1.1. But only failed when execute through Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 12:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-create-table-to-database-using-ODBC/m-p/1017697#M942816</guid>
      <dc:creator />
      <dc:date>2016-01-18T12:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can't create table to database using ODBC</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-create-table-to-database-using-ODBC/m-p/1017698#M942817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By default Qlikview cannot write to a database. If you cannot resist the urge to do silly things with the wrong tool for the job then you can enable the Open Databases in Read and Write Mode on the Settings tab in the Script Editor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 17:27:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-create-table-to-database-using-ODBC/m-p/1017698#M942817</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-01-18T17:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can't create table to database using ODBC</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-create-table-to-database-using-ODBC/m-p/1017699#M942818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, really don't understand why are you doing it with QLIK. It can't be done another way? Sometimes the mest way to solve a problem is to really go around it... &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;Best regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 18:39:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-create-table-to-database-using-ODBC/m-p/1017699#M942818</guid>
      <dc:creator />
      <dc:date>2016-01-18T18:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can't create table to database using ODBC</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-create-table-to-database-using-ODBC/m-p/1017700#M942819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you run in Qlik the select (no CTAS) do you get the same error or does it works?&lt;/P&gt;&lt;P&gt;and if it work do you really need to create a table and read the same table you've just created?&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;&lt;EM&gt;select&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C.Customer_ID,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C.Name,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; O.Order_ID,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; O.Date,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; O.ProductID,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; O.Amount&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;from&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer_table C&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left join Order_table@OrderDB O on C.Customer_iD = O.Customer_ID;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 18:46:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-create-table-to-database-using-ODBC/m-p/1017700#M942819</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-01-18T18:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can't create table to database using ODBC</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-create-table-to-database-using-ODBC/m-p/1017701#M942820</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;&lt;/P&gt;&lt;P&gt;Yeah I know it by Qlik is not designed to write things back to DB, and I do created a read an write connection to do this job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason behind that is I need Qlikview to query multiple Oracle DB in the same query to generate it charts and reports by accepting a criteria that entered by a qlikivew user in the QVW. And the result set also need to be stored in the Oracle Database for other reasons. That is why I need to run a create table DDL query from Qlikview via ODBC before a select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was working fine when all tables sitting under the same DB. It only failed when they are stored into a different database. Anyone got any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 23:43:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-create-table-to-database-using-ODBC/m-p/1017701#M942820</guid>
      <dc:creator />
      <dc:date>2016-01-18T23:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can't create table to database using ODBC</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-create-table-to-database-using-ODBC/m-p/1017702#M942821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maxgro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!. Yes it works if without the Create Table statement. However, it doesn't fulfil the business needs (see my additional response to my original post).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 23:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-create-table-to-database-using-ODBC/m-p/1017702#M942821</guid>
      <dc:creator />
      <dc:date>2016-01-18T23:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can't create table to database using ODBC</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-create-table-to-database-using-ODBC/m-p/1017703#M942822</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;Qlikview is a Dashboard tool which pulls data from the datasources and on top create the graphs on it.&amp;nbsp; I am not sure why you are looking to create a new table and load the existing data and then reading the data from the new table?&amp;nbsp; Instead you can directly use the query to pull the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the necessity to create the new table?&amp;nbsp; To create the new table to need to do some special settings to write back to database check below link for some sample script to insert records into database table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-6655"&gt;Inserting records into Database using Qlikview Script&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 00:46:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-create-table-to-database-using-ODBC/m-p/1017703#M942822</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2016-01-19T00:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can't create table to database using ODBC</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-create-table-to-database-using-ODBC/m-p/1017704#M942823</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;&lt;/P&gt;&lt;P&gt;After a full day working on this. I find that the issue was actually related to the stability of the connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found that the reason I can't create the table Cust_Order is actually because I failed to drop the previous Cust_Order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means Oracle failed to execute the drop table statement that was passed from Qlikview before the create table statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table was actually there before execution of create table query. If Oracle cannot drop the previous Cust_Order table, there is no way for me to create a new table with the same name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my work around solution is to create a store procedure that accept criterions from Qlikview and create a new Cust_Order table everytime when executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Than in Qlikview, everytime I reload the data, I just call the store procedure with my new criteria and follow by loading the new Cust_order table from Oracle into Qlikview.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 06:18:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-create-table-to-database-using-ODBC/m-p/1017704#M942823</guid>
      <dc:creator />
      <dc:date>2016-01-20T06:18:17Z</dc:date>
    </item>
  </channel>
</rss>

