<?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 Inserting data into a database in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Inserting-data-into-a-database/m-p/239977#M90534</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Yes it's possible. But it's not a usual task for QlikView. Qlikview it's a tool for analyzing information.&lt;BR /&gt;&lt;BR /&gt;But if you want it, you can create a VBScript macro, in which create a connection to your database and insert new rows. How do it? You can to use ADO connection, for example. You find more details in VBScript documentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 May 2010 13:40:26 GMT</pubDate>
    <dc:creator>sparur</dc:creator>
    <dc:date>2010-05-13T13:40:26Z</dc:date>
    <item>
      <title>Inserting data into a database</title>
      <link>https://community.qlik.com/t5/QlikView/Inserting-data-into-a-database/m-p/239975#M90532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hy!&lt;/P&gt;&lt;P&gt;I would like to know, if there is a possibility to insert a new record (data) into existing database through some kind of a form in Qlikview Sheet (I am connected to the Access DB)?&lt;BR /&gt;&lt;BR /&gt;So, I would like to create a form in Qlikview Sheet (with data fields in which I could enter desired values) and then when I would click on button insert, this record would be inserted into my database that I'm connected to through Qlickview...&lt;/P&gt;&lt;P&gt;Please help me, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 13:28:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inserting-data-into-a-database/m-p/239975#M90532</guid>
      <dc:creator />
      <dc:date>2010-05-13T13:28:56Z</dc:date>
    </item>
    <item>
      <title>Inserting data into a database</title>
      <link>https://community.qlik.com/t5/QlikView/Inserting-data-into-a-database/m-p/239976#M90533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In principle yes, but its not an recommendable solution.&lt;/P&gt;&lt;P&gt;Here are the basic steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Read out your data from the source, mark all the fields you want a user to be able to edit as inputfields. Add some empty lines by making an inline table. You need to figure out a way to do get the right ID's for the database.&lt;/LI&gt;&lt;LI&gt;Enter input fields values, and save these into a csv file.&lt;/LI&gt;&lt;LI&gt;Reload and read in the csv file, but only the added lines. Then count the records and loop them all while you execute SQL INSERTS against your source.&lt;/LI&gt;&lt;LI&gt;Reread the source, reset all input fields, add some new ones line in step 1.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I'd very much recommend, you to write a simple popup html widget that can be opened from qlikview and that has the input form you look for. From an architectural view I'd recommend that solution.&lt;/P&gt;&lt;P&gt;QlikView also has no good functions for validating input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 13:39:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inserting-data-into-a-database/m-p/239976#M90533</guid>
      <dc:creator>tseebach</dc:creator>
      <dc:date>2010-05-13T13:39:25Z</dc:date>
    </item>
    <item>
      <title>Inserting data into a database</title>
      <link>https://community.qlik.com/t5/QlikView/Inserting-data-into-a-database/m-p/239977#M90534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Yes it's possible. But it's not a usual task for QlikView. Qlikview it's a tool for analyzing information.&lt;BR /&gt;&lt;BR /&gt;But if you want it, you can create a VBScript macro, in which create a connection to your database and insert new rows. How do it? You can to use ADO connection, for example. You find more details in VBScript documentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 13:40:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inserting-data-into-a-database/m-p/239977#M90534</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2010-05-13T13:40:26Z</dc:date>
    </item>
    <item>
      <title>Inserting data into a database</title>
      <link>https://community.qlik.com/t5/QlikView/Inserting-data-into-a-database/m-p/239978#M90535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm totally lost... How do I read out my data from data source, mark all the fields I want,... Where can I do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 13:44:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inserting-data-into-a-database/m-p/239978#M90535</guid>
      <dc:creator />
      <dc:date>2010-05-13T13:44:12Z</dc:date>
    </item>
    <item>
      <title>Inserting data into a database</title>
      <link>https://community.qlik.com/t5/QlikView/Inserting-data-into-a-database/m-p/239979#M90536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Combination of Input Box (for getting input), Button with Macro enabled (for executing query) and Reload statement(reloading for reflection)&lt;/P&gt;&lt;P&gt;I hope this will do for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 13:44:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inserting-data-into-a-database/m-p/239979#M90536</guid>
      <dc:creator>prabhu0505</dc:creator>
      <dc:date>2010-05-13T13:44:39Z</dc:date>
    </item>
    <item>
      <title>Inserting data into a database</title>
      <link>https://community.qlik.com/t5/QlikView/Inserting-data-into-a-database/m-p/239980#M90537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Saravana Prabhu wrote:&lt;BR /&gt;Hi,&lt;BR /&gt; Combination of Input Box (for getting input), Button with Macro enabled (for executing query) and Reload statement(reloading for reflection)&lt;BR /&gt; I hope this will do for you.&lt;BR /&gt; &amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the most likable solution. Do You have any small example maybe, like tutorial/guide... please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 13:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inserting-data-into-a-database/m-p/239980#M90537</guid>
      <dc:creator />
      <dc:date>2010-05-13T13:51:37Z</dc:date>
    </item>
    <item>
      <title>Inserting data into a database</title>
      <link>https://community.qlik.com/t5/QlikView/Inserting-data-into-a-database/m-p/239981#M90538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sample Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;BR /&gt;set&lt;BR /&gt;&lt;/B&gt; &lt;B&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/B&gt;&lt;BR /&gt; &lt;B&gt;&lt;BR /&gt;set&lt;BR /&gt;&lt;/B&gt; &lt;B&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/B&gt;&lt;BR /&gt; status1 = ActiveDocument.variables("Status") mySelections1 = doc.fields("Project_id").GetSelectedValues&lt;BR /&gt;&lt;BR /&gt;sql_query =&lt;BR /&gt;"update Projects set Project_status='"&amp;amp;status1.getContent. &lt;B&gt;String&lt;/B&gt;&amp;amp;"' where Project_id="&amp;amp;mySelections1.Item(0).Text&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This code is for updating, cook it for insert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 05:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inserting-data-into-a-database/m-p/239981#M90538</guid>
      <dc:creator>prabhu0505</dc:creator>
      <dc:date>2010-05-14T05:22:30Z</dc:date>
    </item>
    <item>
      <title>Inserting data into a database</title>
      <link>https://community.qlik.com/t5/QlikView/Inserting-data-into-a-database/m-p/239982#M90539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sample Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;set mySelections = doc.fields("[Project Name]").GetSelectedValues&lt;BR /&gt;set mySelections1 = doc.fields("Project_id").GetSelectedValues&lt;BR /&gt;sql_query = "update Projects set Project_status='"&amp;amp;status1.getContent.String&amp;amp;"' where Project_id="&amp;amp;mySelections1.Item(0).Text&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This code is for update, cook it for insert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 05:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inserting-data-into-a-database/m-p/239982#M90539</guid>
      <dc:creator>prabhu0505</dc:creator>
      <dc:date>2010-05-14T05:26:09Z</dc:date>
    </item>
    <item>
      <title>Inserting data into a database</title>
      <link>https://community.qlik.com/t5/QlikView/Inserting-data-into-a-database/m-p/239983#M90540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where do I write this code? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 06:05:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inserting-data-into-a-database/m-p/239983#M90540</guid>
      <dc:creator />
      <dc:date>2010-05-14T06:05:00Z</dc:date>
    </item>
    <item>
      <title>Inserting data into a database</title>
      <link>https://community.qlik.com/t5/QlikView/Inserting-data-into-a-database/m-p/239984#M90541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do I have to change in Your code? Project Name and Project:_ID? Everything else stay the same? mySelections and mySelections&lt;STRONG&gt;1&lt;/STRONG&gt; is right? What does Project_ID and Projects stands for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 06:13:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inserting-data-into-a-database/m-p/239984#M90541</guid>
      <dc:creator />
      <dc:date>2010-05-14T06:13:17Z</dc:date>
    </item>
    <item>
      <title>Inserting data into a database</title>
      <link>https://community.qlik.com/t5/QlikView/Inserting-data-into-a-database/m-p/239985#M90542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, I have a project named 'Music'. I want to add new musician ('mname') into a table 'Musician' through the input box... Can You please help me? Do You need any other data? Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 06:28:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inserting-data-into-a-database/m-p/239985#M90542</guid>
      <dc:creator />
      <dc:date>2010-05-14T06:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting data into a database</title>
      <link>https://community.qlik.com/t5/QlikView/Inserting-data-into-a-database/m-p/1593638#M443766</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I am trying to insert a record into database on click of a button.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to do using the macro inside the Button- actions with vb script. But I couldn't connect to the database. If you have any sample files please share.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sub writeback ()&lt;BR /&gt;dim sServer, sConn, oConn,oRS&lt;BR /&gt;sServer="servername"&lt;BR /&gt;Set oConn = CreateObject("ADODB.Connection")&lt;BR /&gt;oConn.open("provider=SQLOLEDB.1; Data Source='xxxxxx'; Initial catalog=xxxxxx; User ID='xxxxxxx'; password='xxxxxx'")&lt;BR /&gt;'Set oConn = CreateObject("ADODB.Connection")&lt;BR /&gt;'oConn.Open sConn, "xxxxxxxxxxx", "xxxx"&lt;BR /&gt;'Set oRS =CreateObject("ADODB.Recordset")&lt;BR /&gt;'sSQL="SELECT * FROM [xxxxx].[dbo].[table]"&lt;BR /&gt;'oRS.open sSQL, oConn&lt;BR /&gt;'Set oRS = oConn.Execute(sSQL)&lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but getting access denied or&amp;nbsp;Login failed for user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you any other way to do so please let me know&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 13:30:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inserting-data-into-a-database/m-p/1593638#M443766</guid>
      <dc:creator>baratiram</dc:creator>
      <dc:date>2019-06-19T13:30:09Z</dc:date>
    </item>
  </channel>
</rss>

