<?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: Database Writeback Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936066#M649537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Evan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried adding the fields and still got the error.&amp;nbsp; I also noticed your syntax was a bit different on the Values section so matched that as well and still get the No Permissions error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Mark.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Sep 2015 14:15:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-25T14:15:17Z</dc:date>
    <item>
      <title>Database Writeback Help</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936053#M649521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've read quite a number of posts in regard to writing back to the database and had it working when I hard-coded the values but when I changed to use variables, it does not work.&amp;nbsp; When I try to run the code below using the variables, I get a "No update permissions!" error (exactly as the code says - just not sure what, exactly, I am doing wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Details:&lt;/P&gt;&lt;P&gt;Desktop client only (no web deployment planned), write back to database (initially insert, but later edit &amp;amp; delete options as well).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Macro is as follows (the real code has an actual server listed in the Data Source= portion, left it out here):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub DataInsert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set conn=CreateObject("ADODB.Connection")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; conn.Open "Provider='sqloledb';Data Source=&amp;lt;MyServer&amp;gt;;Initial Catalog='Rally';Integrated Security='SSPI';"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set rs=CreateObject("ADODB.recordset")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;' Database Update&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sql="INSERT INTO mw_TestTable VALUES ('" &amp;amp; vTestChar &amp;amp; "', " &amp;amp; vTestInt &amp;amp; ", '" &amp;amp; vTestDate &amp;amp; "')"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on error resume next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; conn.Execute sql&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if err &amp;lt;&amp;gt; 0 then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgbox("No update permissions! " &amp;amp; err )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; conn.close&lt;/P&gt;&lt;P&gt;end sub &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help you can provide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Mark.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 20:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936053#M649521</guid>
      <dc:creator />
      <dc:date>2015-09-24T20:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Database Writeback Help</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936054#M649522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it by writing your variables like the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'$(vTestChar)' and follow the same format for other variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 20:40:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936054#M649522</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-09-24T20:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Database Writeback Help</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936055#M649523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sinan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I tried using that format I can no longer test the code and get an error, it says "Invalid character".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Mark.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 20:47:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936055#M649523</guid>
      <dc:creator />
      <dc:date>2015-09-24T20:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Database Writeback Help</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936056#M649524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may need to use chr(39) instead of single quote.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 20:48:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936056#M649524</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-09-24T20:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Database Writeback Help</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936057#M649525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Changed to use chr(39):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt; &lt;/TD&gt;&lt;TD&gt;sql="INSERT INTO mw_TestTable VALUES (" &amp;amp; chr(39) &amp;amp; vTestChar&amp;nbsp; &amp;amp; chr(39) &amp;amp; ", " &amp;amp; vTestInt &amp;amp; ", " &amp;amp; chr(39) &amp;amp; vTestDate &amp;amp; chr(39) &amp;amp; ")"&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same error as when I used the single quote.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 20:52:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936057#M649525</guid>
      <dc:creator />
      <dc:date>2015-09-24T20:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Database Writeback Help</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936058#M649526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Mark. I am on a computer, but can you just avoid using double quotes as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sql_text = 'INSERT INTO mw_TestTable VALUES (' &amp;amp; chr(39) &amp;amp; '$(vTestChar)' &amp;amp; ',' &amp;amp; chr(39) &amp;amp; '$(vTestInt)' &amp;amp; chr(39) &amp;amp; ',' &amp;amp; chr(39) &amp;amp; '$(vTestDate)' &amp;amp; chr(30) &amp;amp; ')';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 20:57:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936058#M649526</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-09-24T20:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Database Writeback Help</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936059#M649527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your continued help.&amp;nbsp; The line returns a syntax error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 21:00:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936059#M649527</guid>
      <dc:creator />
      <dc:date>2015-09-24T21:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Database Writeback Help</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936060#M649528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe the error is because a single quote designates commented out code and so by using single quotes, I've effectively commented out the line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 21:01:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936060#M649528</guid>
      <dc:creator />
      <dc:date>2015-09-24T21:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Database Writeback Help</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936061#M649529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's try one more time:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;sql_text = "INSERT INTO mw_TestTable VALUES (" &amp;amp; vTestChar &amp;amp; "," &amp;amp; vTestInt &amp;amp; "," &amp;amp; vTestDate &amp;amp; ")";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;didn't realize you were writing this in VB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not going to work either. I will get back to you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 21:33:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936061#M649529</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-09-24T21:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Database Writeback Help</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936062#M649530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still getting the same error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 21:37:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936062#M649530</guid>
      <dc:creator />
      <dc:date>2015-09-24T21:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Database Writeback Help</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936063#M649531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;Please check this link.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/735092"&gt;Re: SQL Writeback&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2015 01:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936063#M649531</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-09-25T01:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Database Writeback Help</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936064#M649533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Mark Worthen wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;' Database Update&lt;/P&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sql="INSERT INTO mw_TestTable VALUES ('" &amp;amp; vTestChar &amp;amp; "', " &amp;amp; vTestInt &amp;amp; ", '" &amp;amp; vTestDate &amp;amp; "')"&lt;/P&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;P&gt;Mark.&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Hello Mark,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;One thing you may want to look into is whether the statement requires a listing of field names the values are being inserted into (QV VBA macros use this syntax)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sql="INSERT INTO mw_TestTable &lt;EM style="background: yellow;"&gt;(Field1, Field2, Field3)&lt;/EM&gt; VALUES (‘$(vTestChar)', ‘$(vTestInt)’,’$(vTestDate)’”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2015 03:45:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936064#M649533</guid>
      <dc:creator>evan_kurowski</dc:creator>
      <dc:date>2015-09-25T03:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Database Writeback Help</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936065#M649535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where the variables defined? You cannot use QV variables directly in a macro. You need syntax like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set v = ActiveDocument.Variables("&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vTestChar &lt;/SPAN&gt;")&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vTestChar&amp;nbsp; = &lt;/SPAN&gt;v.GetContent.String&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2015 04:50:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936065#M649535</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-09-25T04:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Database Writeback Help</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936066#M649537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Evan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried adding the fields and still got the error.&amp;nbsp; I also noticed your syntax was a bit different on the Values section so matched that as well and still get the No Permissions error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Mark.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2015 14:15:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936066#M649537</guid>
      <dc:creator />
      <dc:date>2015-09-25T14:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Database Writeback Help</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936067#M649539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help Jonathan.&amp;nbsp; That did the trick.&amp;nbsp; Used your code to define all three variables and it works as expected/desired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Mark.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2015 14:25:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936067#M649539</guid>
      <dc:creator />
      <dc:date>2015-09-25T14:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Database Writeback Help</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936068#M649541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That syntax is used in conjunction with DynamicUpdateCommand, which can be launched from the VBA module and doesn't require the intermediate steps of assigning a QlikView variable into a VB variable.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2015 17:00:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936068#M649541</guid>
      <dc:creator>evan_kurowski</dc:creator>
      <dc:date>2015-09-25T17:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Database Writeback Help</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936069#M649542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Evan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;That syntax is used in conjunction with DynamicUpdateCommand, which can be launched from the VBA module and doesn't require the intermediate steps of assigning a QlikView variable into a VB variable. &lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is where I thought I was.&amp;nbsp; Tools; Edit Module.&amp;nbsp; Entirely likely my ignorance is showing through again.&amp;nbsp; Where is the VBA module as compared to where I was?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2015 17:06:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936069#M649542</guid>
      <dc:creator />
      <dc:date>2015-09-25T17:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Database Writeback Help</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936070#M649543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Mark Worthen wrote:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Details:&lt;/P&gt;
&lt;P&gt;Desktop client only (no web deployment planned), write back to database (initially insert, but later edit &amp;amp; delete options as well).&lt;/P&gt;
&lt;P&gt;Hi Evan,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;BLOCKQUOTE class="jive-quote"&gt;
&lt;P&gt;That syntax is used in conjunction with DynamicUpdateCommand, which can be launched from the VBA module and doesn't require the intermediate steps of assigning a QlikView variable into a VB variable.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;That is where I thought I was.&amp;nbsp; Tools; Edit Module.&amp;nbsp; Entirely likely my ignorance is showing through again.&amp;nbsp; Where is the VBA module as compared to where I was?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;










&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hello Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed it sounds like you're in the right place.&amp;nbsp; If you use DynamicUpdateCommand, the VBA code can reference Qlikview variables without having to convert to VB variables first, but this is only writing back to the internal QVW.&amp;nbsp; For an external DB connection, syntax converting each QV variable to a VB variable is the way to go when using the VB module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if your goal is to writeback many QV variables into an external database, why are you using the VBA module as compared to a partial reload?&amp;nbsp; For writeback, it seems in-script replacement of QV variables in conjunction with native DDL in non- SQL SELECT statements would be easier to form than building in the VB module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;For example, why is something like this off the table?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;IF&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IsPartialReload&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; '$(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;vDBAction)'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'INSERT' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;OLEDB&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;CONNECT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Data Source=$(MyServer);Initial Catalog='Rally';Integrated Security='SSPI']&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; INSERT INTO mw_TestTable VALUES ('$(vQVVariable1)','$(vQVVariable2)', '$(vQVVariable3)');&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;END&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2015 17:18:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936070#M649543</guid>
      <dc:creator>evan_kurowski</dc:creator>
      <dc:date>2015-09-25T17:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Database Writeback Help</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936071#M649544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Evan Kurowski wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;However, if your goal is to writeback many QV variables into an external database, why are you using the VBA module as compared to a partial reload?&amp;nbsp; For writeback, it seems in-script replacement of QV variables in conjunction with native DDL in non- SQL SELECT statements would be easier to form than building in the VB module.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;For example, why is something like this off the table?&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;IF&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IsPartialReload&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; '$(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;vDBAction)'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'INSERT' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;OLEDB&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;CONNECT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Data Source=$(MyServer);Initial Catalog='Rally';Integrated Security='SSPI']&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; INSERT INTO mw_TestTable VALUES ('$(vQVVariable1)','$(vQVVariable2)', '$(vQVVariable3)');&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;END&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I google'd how to write back to the database and never found this as an option.&amp;nbsp; More learning to do.&amp;nbsp; That looks like a better option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll have to study up on the IsPartialReload() function and go from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the pointer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 15:00:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936071#M649544</guid>
      <dc:creator />
      <dc:date>2015-09-28T15:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Database Writeback Help</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936072#M649545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark Worthen wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I google'd how to write back to the database and never found this as an option.&amp;nbsp; More learning to do.&amp;nbsp; That looks like a better option.&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll have to study up on the IsPartialReload() function and go from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the pointer.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The IsPartialReload() part is related to how much data you already have loaded within the same application as your DB update client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say you were working with an empty or near empty shell application with very little data, a .QVW designed to execute DDL only, your writeback statement is going to take about the same execution time for Full vs. Partial reload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in a scenario where you've loaded a large volume of data, and are connecting your update variables to field selections made against this large dataset, the extra time between each full reload transaction would start to feel cumbersome.&lt;EM&gt; (Full reload dumps out all the data, and starts anew, vs. Partial which doesn't erase any data, only performs supplementary actions). &lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;Then as I saw mentioned earlier, a switch statement can be useful to organize and expand into a variety of DDL actions in an orderly manner.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;OLEDB&lt;/SPAN&gt; &lt;SPAN style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;Connect&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;[ToSomething]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;SWITCH&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt; '$(vDBAction)'&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;CASE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt; 'INSERT'&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: green; font-family: 'Courier New'; font-size: 9pt;"&gt;//INSERT SQL&lt;BR /&gt; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;CASE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt; 'UPDATE'&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: green; font-family: 'Courier New'; font-size: 9pt;"&gt;//UPDATE SQL&lt;BR /&gt; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;CASE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt; 'CREATE'&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: green; font-family: 'Courier New'; font-size: 9pt;"&gt;//CREATE SQL&lt;BR /&gt; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;CASE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt; 'DROP'&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: green; font-family: 'Courier New'; font-size: 9pt;"&gt;//DROP SQL&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;END&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;SWITCH&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 01:41:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Writeback-Help/m-p/936072#M649545</guid>
      <dc:creator>evan_kurowski</dc:creator>
      <dc:date>2015-09-29T01:41:07Z</dc:date>
    </item>
  </channel>
</rss>

