<?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 Problem executing VBScript with database connection in QMC in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-executing-VBScript-with-database-connection-in-QMC/m-p/338516#M1305460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like you'll need to write some log messages out of the VbScript itself. I thnk you can do this with &lt;/P&gt;&lt;P&gt;Wscript.Echo("mymessage")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and redirect the stdout to a file by executng your bat with redirection like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RunVBScript.bat &amp;gt; c:\temp\logfile.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jun 2012 14:29:01 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2012-06-11T14:29:01Z</dc:date>
    <item>
      <title>Problem executing VBScript with database connection in QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-executing-VBScript-with-database-connection-in-QMC/m-p/338513#M1305456</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;I have written a VB Script which connects to database and uses the select query and gets some status flag.&lt;/P&gt;&lt;P&gt;Using that flag, am checking that condition in the VB Script and archiving the previous qvw file.&lt;/P&gt;&lt;P&gt;so i have given that vb script path in the Supporting task-&amp;gt;External Program-&amp;gt; VB Script task.&lt;/P&gt;&lt;P&gt;I have given the BAT file which calls the VB Script. &lt;/P&gt;&lt;P&gt;If i run the BAT file directly, then it works perfectly, but if i run the task in the server, then its showing running, but the archival is not happening.&lt;/P&gt;&lt;P&gt;Is it because of database connectivity in VB Script, which is making it not to archive?&lt;/P&gt;&lt;P&gt;can anyone help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-executing-VBScript-with-database-connection-in-QMC/m-p/338513#M1305456</guid>
      <dc:creator>udaya_kumar</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Problem executing VBScript with database connection in QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-executing-VBScript-with-database-connection-in-QMC/m-p/338514#M1305457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you write some log messages out of your script so you can determine what is happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 05:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-executing-VBScript-with-database-connection-in-QMC/m-p/338514#M1305457</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-06-06T05:20:26Z</dc:date>
    </item>
    <item>
      <title>Problem executing VBScript with database connection in QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-executing-VBScript-with-database-connection-in-QMC/m-p/338515#M1305458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the details in the log file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 5pt; margin-bottom: 5pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;(2012-06-05 14:01:25) Information: Starting task'MARA_ARCHIVE_SCRIPT'. Id:4d2d8042-2504-47da-803d-300d480c391c. Triggered by'ManualStartTrigger'. Id:00000001-0002-0003-0405-0607080a0b0c&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5pt; margin-bottom: 5pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;(2012-06-05 14:01:25) Information: Entering TaskExecution. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5pt; margin-bottom: 5pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;(2012-06-05 14:01:25) Information: ClusterID=1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5pt; margin-bottom: 5pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;(2012-06-05 14:01:25) Information:QDSID=a9bc0df3-80ed-5137-c0ef-67a390a017ed&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5pt; margin-bottom: 5pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;(2012-06-05 14:01:25) Information:TaskID=4d2d8042-2504-47da-803d-300d480c391c&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5pt; margin-bottom: 5pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;(2012-06-05 14:01:25) Information:MaxRunTime=1.00:00:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5pt; margin-bottom: 5pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;(2012-06-05 14:01:25) Information:MachineName=WA00488D&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5pt; margin-bottom: 5pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;(2012-06-05 14:01:25) Information: Max attempts:1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5pt; margin-bottom: 5pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;(2012-06-05 14:01:25) Information: Current Attempt=0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5pt; margin-bottom: 5pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;(2012-06-05 14:01:25) Information: Task Dependenciesare OK&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5pt; margin-bottom: 5pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;(2012-06-05 14:01:25) Information: Executing "\\Servername\Current&lt;A href="https://community.qlik.com/"&gt;\RunVBScript.bat&lt;/A&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5pt; margin-bottom: 5pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;(2012-06-05 14:01:25) Information: Executing commandline:"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 16px;"&gt;\\Servername\Current&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/" style="font-family: 'Times New Roman', serif; font-size: 16px;"&gt;\RunVBScript.bat&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-top: 5pt; margin-bottom: 5pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;" in folder"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 16px;"&gt;\\Servername\Current&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;".&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5pt; margin-bottom: 5pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;(2012-06-05 14:01:28) Information: Process exitedwith exit code: 0 at 6/5/2012 2:01:28 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5pt; margin-bottom: 5pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;(2012-06-05 14:01:28) Information: Process exitedwith exit code: 0 at 6/5/2012 2:01:28 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5pt; margin-bottom: 5pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;(2012-06-05 14:01:28) Information: Task Execute Duration=00:00:02.9173496&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5pt; margin-bottom: 5pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;(2012-06-05 14:01:28) Information: The task"MARA_ARCHIVE_SCRIPT" finished successfully&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5pt; margin-bottom: 5pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;(2012-06-05 14:01:28) Information:TaskResult.status=Finished&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5pt; margin-bottom: 5pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;(2012-06-05 14:01:28) Information: Notifying alltriggers of new state:Finished&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5pt; margin-bottom: 5pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;(2012-06-05 14:01:28) Information: Notifying alltriggers of new state:Finished - completed&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5pt; margin-bottom: 5pt;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;(2012-06-05 14:01:28) Information: Saving TaskResult&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It shows its executed successfully, but its not archiving&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jun 2012 07:29:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-executing-VBScript-with-database-connection-in-QMC/m-p/338515#M1305458</guid>
      <dc:creator>udaya_kumar</dc:creator>
      <dc:date>2012-06-10T07:29:09Z</dc:date>
    </item>
    <item>
      <title>Problem executing VBScript with database connection in QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-executing-VBScript-with-database-connection-in-QMC/m-p/338516#M1305460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like you'll need to write some log messages out of the VbScript itself. I thnk you can do this with &lt;/P&gt;&lt;P&gt;Wscript.Echo("mymessage")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and redirect the stdout to a file by executng your bat with redirection like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RunVBScript.bat &amp;gt; c:\temp\logfile.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 14:29:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-executing-VBScript-with-database-connection-in-QMC/m-p/338516#M1305460</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-06-11T14:29:01Z</dc:date>
    </item>
  </channel>
</rss>

