<?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: Execute SQL+ request  and generate a csv file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Execute-SQL-request-and-generate-a-csv-file/m-p/861098#M301371</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thx for responding .&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;for the log file &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;cnx_Oracle_Log&lt;/SPAN&gt; i have inside :&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL*Plus: Release 11.2.0.1.0 Production on Wed Jul 1 14:05:55 2015&lt;/P&gt;&lt;P&gt;Copyright (c) 1982, 2010, Oracle.&amp;nbsp; All rights reserved.&lt;/P&gt;&lt;P&gt;Connected to:&lt;/P&gt;&lt;P&gt;Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production&lt;/P&gt;&lt;P&gt;With the Partitioning and Real Application Testing options&lt;/P&gt;&lt;P&gt;Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production&lt;/P&gt;&lt;P&gt;With the Partitioning and Real Application Testing options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the user can connect to the databse .&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;for the third point i'll check that .&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jul 2015 12:08:32 GMT</pubDate>
    <dc:creator>mohamed_ahid</dc:creator>
    <dc:date>2015-07-01T12:08:32Z</dc:date>
    <item>
      <title>Execute SQL+ request  and generate a csv file</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-SQL-request-and-generate-a-csv-file/m-p/861096#M301369</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;i have the bellow code which works before on my application .Today i was surprised to know that the task has failed because this peace of script is not generating any csv file any more . &lt;/P&gt;&lt;P&gt;Any idea ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET cnx_Oracle_Tns = 'databse';&lt;/P&gt;&lt;P&gt;SET cnx_Oracle_User = 'user';&lt;/P&gt;&lt;P&gt;SET cnx_Oracle_Pass = 'user';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET cnx_Oracle_Id = 'test';&lt;/P&gt;&lt;P&gt;SET cnx_Oracle_Requete = '$(v_Path_Exporter)request.sql+';&lt;/P&gt;&lt;P&gt;SET cnx_Oracle_Log = '$(v_Path_Exporter)request.log';&lt;/P&gt;&lt;P&gt;LET cnx_Oracle_FileExport = '$(today_date)' &amp;amp; '_test' &amp;amp; '.csv';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXECUTE cmd.exe /C sqlplus $(cnx_Oracle_User)/$(cnx_Oracle_Pass)@$(cnx_Oracle_Tns) @$(cnx_Oracle_Requete) "$(v_Path_Source)$(cnx_Oracle_FileExport)" &amp;gt; "$(cnx_Oracle_Log)";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 11:53:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-SQL-request-and-generate-a-csv-file/m-p/861096#M301369</guid>
      <dc:creator>mohamed_ahid</dc:creator>
      <dc:date>2015-07-01T11:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SQL+ request  and generate a csv file</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-SQL-request-and-generate-a-csv-file/m-p/861097#M301370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would check&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Can user/password connect to database?&lt;/LI&gt;&lt;LI&gt;Does this users have GRANT of Select into your query (&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;request.sql&lt;/SPAN&gt;)&lt;/LI&gt;&lt;LI&gt;What´s the content of&amp;nbsp; &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;cnx_Oracle_Log?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 11:57:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-SQL-request-and-generate-a-csv-file/m-p/861097#M301370</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-07-01T11:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SQL+ request  and generate a csv file</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-SQL-request-and-generate-a-csv-file/m-p/861098#M301371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thx for responding .&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;for the log file &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;cnx_Oracle_Log&lt;/SPAN&gt; i have inside :&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL*Plus: Release 11.2.0.1.0 Production on Wed Jul 1 14:05:55 2015&lt;/P&gt;&lt;P&gt;Copyright (c) 1982, 2010, Oracle.&amp;nbsp; All rights reserved.&lt;/P&gt;&lt;P&gt;Connected to:&lt;/P&gt;&lt;P&gt;Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production&lt;/P&gt;&lt;P&gt;With the Partitioning and Real Application Testing options&lt;/P&gt;&lt;P&gt;Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production&lt;/P&gt;&lt;P&gt;With the Partitioning and Real Application Testing options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the user can connect to the databse .&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;for the third point i'll check that .&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 12:08:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-SQL-request-and-generate-a-csv-file/m-p/861098#M301371</guid>
      <dc:creator>mohamed_ahid</dc:creator>
      <dc:date>2015-07-01T12:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SQL+ request  and generate a csv file</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-SQL-request-and-generate-a-csv-file/m-p/861099#M301372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;everything works great when i copy the sql script and executing it directly on QV .&lt;/P&gt;&lt;P&gt;still not founding what is the issue .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 12:24:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-SQL-request-and-generate-a-csv-file/m-p/861099#M301372</guid>
      <dc:creator>mohamed_ahid</dc:creator>
      <dc:date>2015-07-01T12:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SQL+ request  and generate a csv file</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-SQL-request-and-generate-a-csv-file/m-p/861100#M301373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using ODBC or OLE DB connection? I see this happen with OLE DB connections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 12:44:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-SQL-request-and-generate-a-csv-file/m-p/861100#M301373</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-07-01T12:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SQL+ request  and generate a csv file</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-SQL-request-and-generate-a-csv-file/m-p/861101#M301374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how can i check that ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 13:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-SQL-request-and-generate-a-csv-file/m-p/861101#M301374</guid>
      <dc:creator>mohamed_ahid</dc:creator>
      <dc:date>2015-07-01T13:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SQL+ request  and generate a csv file</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-SQL-request-and-generate-a-csv-file/m-p/861102#M301375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First look at the script to see if it is using the below syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/91470_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 13:05:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-SQL-request-and-generate-a-csv-file/m-p/861102#M301375</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-07-01T13:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SQL+ request  and generate a csv file</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-SQL-request-and-generate-a-csv-file/m-p/861103#M301376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is nothing like this in my script .&lt;/P&gt;&lt;P&gt;my script posted before call a file called request.sql+ and inside it i have :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET echo off;&lt;/P&gt;&lt;P&gt;SET feedback off;&lt;/P&gt;&lt;P&gt;SET heading off;&lt;/P&gt;&lt;P&gt;SET lines 10000;&lt;/P&gt;&lt;P&gt;SET pagesize 50000;&lt;/P&gt;&lt;P&gt;SET termout off;&lt;/P&gt;&lt;P&gt;SET trims on;&lt;/P&gt;&lt;P&gt;SET trimspool on;&lt;/P&gt;&lt;P&gt;SET underline off;&lt;/P&gt;&lt;P&gt;SET verify off;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPOOL &amp;amp;1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT /*+ PARALLEL(4) */&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOGIN&lt;/P&gt;&lt;P&gt;&amp;nbsp; ||'|'|| password&lt;/P&gt;&lt;P&gt;&amp;nbsp; ||'|'|| data1&lt;/P&gt;&lt;P&gt;&amp;nbsp; ||'|'|| data2&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp; stagt.ord_ftd_pas&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp; TYPE_OFFRE = 'data' &lt;/P&gt;&lt;P&gt;&amp;nbsp; AND&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOGIN is not null&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPOOL off;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;EXIT SQL.SQLCODE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 13:18:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-SQL-request-and-generate-a-csv-file/m-p/861103#M301376</guid>
      <dc:creator>mohamed_ahid</dc:creator>
      <dc:date>2015-07-01T13:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SQL+ request  and generate a csv file</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-SQL-request-and-generate-a-csv-file/m-p/861104#M301377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I am not a SQLPlus person, but I Looked at some examples online regarding your issue and here are some possible reasons:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Empty lines in the sql code. SQLPlus interprets empty lines as "stop previous statement and start a new one"&lt;/LI&gt;&lt;LI&gt;Another solution is to clear the cache and re-run the cmd.exe command&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry again. SQLPlus is not my forte, in fact none of the Oracle RDBMS's.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 16:35:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-SQL-request-and-generate-a-csv-file/m-p/861104#M301377</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-07-01T16:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SQL+ request  and generate a csv file</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-SQL-request-and-generate-a-csv-file/m-p/861105#M301378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thx .&lt;/P&gt;&lt;P&gt;Finally the issue is caused by the space in my relatif path in variable &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'$(v_Path_Exporter) .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;when i changed it it works .&lt;/P&gt;&lt;P&gt;is there any way to keep spaces in my path with sql+.&lt;/P&gt;&lt;P&gt;thx all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 10:11:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-SQL-request-and-generate-a-csv-file/m-p/861105#M301378</guid>
      <dc:creator>mohamed_ahid</dc:creator>
      <dc:date>2015-07-02T10:11:17Z</dc:date>
    </item>
  </channel>
</rss>

