<?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 Oracle Macro Fun! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Oracle-Macro-Fun/m-p/239461#M501591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ODBC connection string is different than an OLEDB one. If you want to use the DSN, it might look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Provider=MSDASQL.1;Password=password;Persist Security Info=True;User ID=userid;Data Source=DSNName"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Mar 2011 15:06:42 GMT</pubDate>
    <dc:creator>stephencredmond</dc:creator>
    <dc:date>2011-03-04T15:06:42Z</dc:date>
    <item>
      <title>Oracle Macro Fun!</title>
      <link>https://community.qlik.com/t5/QlikView/Oracle-Macro-Fun/m-p/239456#M501586</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'm trying to update the value in a stored procedure using a macro, but it's failing to connect to Oracle; my code is:&lt;/P&gt;&lt;P&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;sub test()&lt;/P&gt;&lt;P&gt;Dim connection, connectionString, theCommand, commandString&lt;BR /&gt;connectionString = "DSN=EFIN;Uid=user;Pwd=pword;"&lt;BR /&gt;Set connection = CreateObject("ADODB.Connection")&lt;/P&gt;&lt;P&gt;Set theCommand = CreateObject("ADODB.Command")&lt;/P&gt;&lt;P&gt;connection.Open connectionString&lt;/P&gt;&lt;P&gt;If connection.State = adStateOpen Then&lt;BR /&gt; MsgBox "Welcome to bnhft!"&lt;BR /&gt;Else&lt;BR /&gt; MsgBox "Sorry. No bnhft today."&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;const cnstStoredProcedure = 4 'Command type - 4 is for stored procedure&lt;BR /&gt;commandString = "PKG_PARAM.SET_FLAG"&lt;BR /&gt;thecommand.CommandText = commandString&lt;BR /&gt;thecommand.CommandType = cnstStoredProcedure&lt;BR /&gt;thecommand.ActiveConnection = connection&lt;BR /&gt;thecommand.Parameters.Append thecommand.CreateParameter("FLAG",adChar,adParamInput,"1")&lt;BR /&gt;thecommand.Execute&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just get the message "Sorry. No bnhft today." indicating that the connection has failed. The DSN works fine in the reload script?&lt;/P&gt;&lt;P&gt;Any advice welcome!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dominic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 13:35:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Oracle-Macro-Fun/m-p/239456#M501586</guid>
      <dc:creator />
      <dc:date>2011-03-04T13:35:16Z</dc:date>
    </item>
    <item>
      <title>Oracle Macro Fun!</title>
      <link>https://community.qlik.com/t5/QlikView/Oracle-Macro-Fun/m-p/239457#M501587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dominic,&lt;/P&gt;&lt;P&gt;Do you have System Access turned on in the security section of the module editor?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 14:37:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Oracle-Macro-Fun/m-p/239457#M501587</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2011-03-04T14:37:40Z</dc:date>
    </item>
    <item>
      <title>Oracle Macro Fun!</title>
      <link>https://community.qlik.com/t5/QlikView/Oracle-Macro-Fun/m-p/239458#M501588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen&lt;/P&gt;&lt;P&gt;Yes I have System access set on and local security Allow system access.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 14:44:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Oracle-Macro-Fun/m-p/239458#M501588</guid>
      <dc:creator />
      <dc:date>2011-03-04T14:44:33Z</dc:date>
    </item>
    <item>
      <title>Oracle Macro Fun!</title>
      <link>https://community.qlik.com/t5/QlikView/Oracle-Macro-Fun/m-p/239459#M501589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does it work outside of QlikView if you just create a .vbs file and run that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 14:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Oracle-Macro-Fun/m-p/239459#M501589</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2011-03-04T14:52:18Z</dc:date>
    </item>
    <item>
      <title>Oracle Macro Fun!</title>
      <link>https://community.qlik.com/t5/QlikView/Oracle-Macro-Fun/m-p/239460#M501590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you're right it doesn't work as a vbs either.....&lt;/P&gt;&lt;P&gt;Not a QV issue then but still I don't see what's wrong with my connection string?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 14:58:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Oracle-Macro-Fun/m-p/239460#M501590</guid>
      <dc:creator />
      <dc:date>2011-03-04T14:58:47Z</dc:date>
    </item>
    <item>
      <title>Oracle Macro Fun!</title>
      <link>https://community.qlik.com/t5/QlikView/Oracle-Macro-Fun/m-p/239461#M501591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ODBC connection string is different than an OLEDB one. If you want to use the DSN, it might look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Provider=MSDASQL.1;Password=password;Persist Security Info=True;User ID=userid;Data Source=DSNName"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 15:06:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Oracle-Macro-Fun/m-p/239461#M501591</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2011-03-04T15:06:42Z</dc:date>
    </item>
  </channel>
</rss>

