<?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 Does QV effect SQL transaction log size? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Does-QV-effect-SQL-transaction-log-size/m-p/225662#M715676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;Thanks for the reply, thats very interesting!&lt;BR /&gt;Do you have any examples / info on the fetch command as i've not seen this before.&lt;/P&gt;&lt;P&gt;A common statement i might use is&lt;BR /&gt;select field1, field2 from table where field1=100&lt;BR /&gt;How would this be changed to use fetch?&lt;/P&gt;&lt;P&gt;We're running 2003 server &amp;amp; SQL server 2005.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Oct 2009 15:54:02 GMT</pubDate>
    <dc:creator>peter_turner</dc:creator>
    <dc:date>2009-10-28T15:54:02Z</dc:date>
    <item>
      <title>Does QV effect SQL transaction log size?</title>
      <link>https://community.qlik.com/t5/QlikView/Does-QV-effect-SQL-transaction-log-size/m-p/225660#M715674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello All!&lt;/P&gt;&lt;P&gt;Q: Does QV effect SQL transaction log size?&lt;/P&gt;&lt;P&gt;I've seen on 2 machines that the SQL transaction log size had grown to its maximum size, and was effecting the SQL database's ability to store data.&lt;BR /&gt;As QV should only be reading data (with SQL select statements) I'm unsure why this might happen.&lt;BR /&gt;Has anyone had similar behaviour?&lt;/P&gt;&lt;P&gt;I know a possible solution is to perform database backups as this will clear the transaction log, but i wanted to know why the situation occurred in the first place.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 16:14:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Does-QV-effect-SQL-transaction-log-size/m-p/225660#M715674</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2009-10-27T16:14:00Z</dc:date>
    </item>
    <item>
      <title>Does QV effect SQL transaction log size?</title>
      <link>https://community.qlik.com/t5/QlikView/Does-QV-effect-SQL-transaction-log-size/m-p/225661#M715675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're logging reads, then yes, QlikView would affect the SQL transaction log size. I believe that in our environment, we only log insert/update/delete, so at least in our environment, that isn't an issue. It sounds like you don't expect that to be an issue in your environment either.&lt;/P&gt;&lt;P&gt;Another thing you may need is FOR FETCH ONLY in your SQL statements in QlikView. In our system, if you don't specify for fetch only, it will lock the records you're reading on the assumption that you may follow up the read with an update. On top of it being a bad idea to take locks to simply read data, it at least seems reasonable that the locks would push the data into your SQL transaction log.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 03:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Does-QV-effect-SQL-transaction-log-size/m-p/225661#M715675</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-10-28T03:24:34Z</dc:date>
    </item>
    <item>
      <title>Does QV effect SQL transaction log size?</title>
      <link>https://community.qlik.com/t5/QlikView/Does-QV-effect-SQL-transaction-log-size/m-p/225662#M715676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;Thanks for the reply, thats very interesting!&lt;BR /&gt;Do you have any examples / info on the fetch command as i've not seen this before.&lt;/P&gt;&lt;P&gt;A common statement i might use is&lt;BR /&gt;select field1, field2 from table where field1=100&lt;BR /&gt;How would this be changed to use fetch?&lt;/P&gt;&lt;P&gt;We're running 2003 server &amp;amp; SQL server 2005.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 15:54:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Does-QV-effect-SQL-transaction-log-size/m-p/225662#M715676</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2009-10-28T15:54:02Z</dc:date>
    </item>
    <item>
      <title>Does QV effect SQL transaction log size?</title>
      <link>https://community.qlik.com/t5/QlikView/Does-QV-effect-SQL-transaction-log-size/m-p/225663#M715677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition to working with our BI tools I occasionally wear the SQL dba hat. So I think I will throw in my two cents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the recovery model you are using on your database you &lt;B&gt;&lt;I&gt;must perform regular log and database backups to manage the size of the log&lt;/I&gt;&lt;/B&gt;.&lt;/P&gt;&lt;P&gt;If you are in a Simple Recovery mode then the log will manage itself but now that your log is large you will have to shrink it to get it back to a more "normal" size.&lt;/P&gt;&lt;P&gt;If you are in Full Recovery mode then you must back up your database and logs in order to manage the log size. Part of the backup process is to remove transactions from the log and move them into the data file.&lt;/P&gt;&lt;P&gt;Generally speaking I would not worry about reads from Qlikview causing the log to grow, what I wonder is do you have maintenance plans running on a regular basis and how much does your data change each day. That will give me the best answer to how your log file got so big. So unless you are dumping this database and reloading from scratch every night or it is read-only then I would make sure to get a maintenance plan running. Eventually your log will fill the disk and then you won't be able to do anything.&lt;/P&gt;&lt;P&gt;Like I said dba is one of the hats I wear so I'm not the necessarily an expert but I've dealt with this situation many time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chris&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 19:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Does-QV-effect-SQL-transaction-log-size/m-p/225663#M715677</guid>
      <dc:creator>chriscammers</dc:creator>
      <dc:date>2009-10-28T19:49:13Z</dc:date>
    </item>
    <item>
      <title>Does QV effect SQL transaction log size?</title>
      <link>https://community.qlik.com/t5/QlikView/Does-QV-effect-SQL-transaction-log-size/m-p/225664#M715678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most of my SQL experience is with DB2. When retrieving from DB2, the "for fetch only" goes right on the end like this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;SQL&lt;BR /&gt;SELECT&lt;BR /&gt; field1&lt;BR /&gt;,field2&lt;BR /&gt;FROM table&lt;BR /&gt;WHERE field1 = 100&lt;BR /&gt;FOR FETCH ONLY&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;I don't know if this is applicable to SQL server or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 22:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Does-QV-effect-SQL-transaction-log-size/m-p/225664#M715678</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-10-28T22:13:55Z</dc:date>
    </item>
    <item>
      <title>Does QV effect SQL transaction log size?</title>
      <link>https://community.qlik.com/t5/QlikView/Does-QV-effect-SQL-transaction-log-size/m-p/225665#M715679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For SQL server you will want to use NOLOCK&lt;/P&gt;&lt;P&gt;ie&lt;/P&gt;&lt;P&gt;SELECT fields FROM table (NOLOCK) WHERE whereclause&lt;/P&gt;&lt;P&gt;Of course dirty reads have cons of thier own.&lt;/P&gt;&lt;P&gt;Data may be updated while you are getting data (something that could happen with a query that has a long life cycle).&lt;/P&gt;&lt;P&gt;Phantom records, data that exists due to a transaction (like an insert) but still has the possibilty of being rolled back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2009 10:32:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Does-QV-effect-SQL-transaction-log-size/m-p/225665#M715679</guid>
      <dc:creator />
      <dc:date>2009-11-02T10:32:25Z</dc:date>
    </item>
    <item>
      <title>Does QV effect SQL transaction log size?</title>
      <link>https://community.qlik.com/t5/QlikView/Does-QV-effect-SQL-transaction-log-size/m-p/225666#M715680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;It looks like the "for fetch only" is just DB2, but its a good idea.&lt;BR /&gt;In the end i suspect the trans log had grown so much because we had been adding large amounts of data with no backups.&lt;BR /&gt;Implementing a maintenance plan is a good idea just for the backup process and i'd recommend that for any live QV database system.&lt;BR /&gt;&lt;BR /&gt;One thing to be aware of, if your using the SQL studio management express (the free version), you don't get the maintenance plan option and can only create backups manually.&lt;BR /&gt;There is a way around this by getting the TSQL code from the backup wizard window (generate script option), then using the sqlcmd.exe command line program to run your script file, then using a windows task to schedule it.&lt;BR /&gt;A long way of doing things but it works at a pinch.&lt;BR /&gt;Peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2009 17:00:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Does-QV-effect-SQL-transaction-log-size/m-p/225666#M715680</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2009-11-02T17:00:58Z</dc:date>
    </item>
    <item>
      <title>Does QV effect SQL transaction log size?</title>
      <link>https://community.qlik.com/t5/QlikView/Does-QV-effect-SQL-transaction-log-size/m-p/225667#M715681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BTW : Shrinking / truncate log file when log is full in MS SQL&lt;/P&gt;&lt;P&gt;USE DatabaseName&lt;BR /&gt;GO&lt;BR /&gt;DBCC SHRINKFILE(&amp;lt;TransactionLogName&amp;gt;, 1)&lt;BR /&gt;BACKUP LOG &amp;lt;DatabaseName&amp;gt; WITH TRUNCATE_ONLY&lt;BR /&gt;DBCC SHRINKFILE(&amp;lt;TransactionLogName&amp;gt;, 1)&lt;BR /&gt;GO&lt;/P&gt;&lt;P&gt;Some people run it as a scheduled task ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2009 21:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Does-QV-effect-SQL-transaction-log-size/m-p/225667#M715681</guid>
      <dc:creator />
      <dc:date>2009-11-02T21:59:49Z</dc:date>
    </item>
    <item>
      <title>Does QV effect SQL transaction log size?</title>
      <link>https://community.qlik.com/t5/QlikView/Does-QV-effect-SQL-transaction-log-size/m-p/225668#M715682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ondrej,&lt;BR /&gt;Thanks for the code, i just gave that a go and works great!&lt;BR /&gt;I do have a question regarding the 2 result tables that get displayed, fields such as DbId, CurrentSize etc etc are shown.&lt;BR /&gt;Both result tables are the same for me, i'm guessing the first should be the size info before the process runs?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2009 22:31:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Does-QV-effect-SQL-transaction-log-size/m-p/225668#M715682</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2009-11-02T22:31:53Z</dc:date>
    </item>
    <item>
      <title>Does QV effect SQL transaction log size?</title>
      <link>https://community.qlik.com/t5/QlikView/Does-QV-effect-SQL-transaction-log-size/m-p/225669#M715683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;I'm not sure why you have the size the same. But have a look here :&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.microsoft.com/kb/907511"&gt;http://support.microsoft.com/kb/907511&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and here :&lt;/P&gt;&lt;P&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/aa258824(SQL.80).aspx"&gt;http://msdn.microsoft.com/en-us/library/aa258824(SQL.80).aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 17:01:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Does-QV-effect-SQL-transaction-log-size/m-p/225669#M715683</guid>
      <dc:creator />
      <dc:date>2009-11-03T17:01:19Z</dc:date>
    </item>
    <item>
      <title>Does QV effect SQL transaction log size?</title>
      <link>https://community.qlik.com/t5/QlikView/Does-QV-effect-SQL-transaction-log-size/m-p/225670#M715684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For Microsoft SQL Server the short and simple answer is: No.&lt;/P&gt;&lt;P&gt;The more complex answer is; it depends. Reading in SQL Server doesn't generate log. Only writing (=inserting or updating). It is possible to write back to the database using QlikView, but I'd guess that's not the case.&lt;/P&gt;&lt;P&gt;Each time a update/insert is performed, the logfile is written. It will grow until one of the following occours:&lt;/P&gt;&lt;P&gt;&lt;B&gt;1) A backup is done.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;... but even when a backup has been done, the logfile is still in the same size. SQL leaves the file as is and only moves the write pointer to the beginning of the file. It's a really smart strategy, if you have an average of 100Mb of log each 24h, the logfile will grow and then eventually stay at some size (let's say 150Mb). There is a penalty cost of extending the size of the logfile, which is avoided by this strategy.&lt;/P&gt;&lt;P style="font-weight: bold"&gt;b) The log is discarded&lt;/P&gt;&lt;P&gt;... The log can be discarded in many ways, but I wouldn't recommend any of them for a production system. If the system is important, keep a backup of the database &lt;B&gt;and&lt;/B&gt; the logs (this is known as "Full recovery").&lt;/P&gt;&lt;P&gt;If the system doesn't have use for backups/logs, use "simple backup" (also known as "Truncate log on checkpoint"), which will move back the pointer to the beginning of the log file after each completed insert/update operation. In essense, the log file will be overwritten over and over (and not appended). In this case, the log file will grow up to the size of the largest insert/update operation you do and then stay there.&lt;/P&gt;&lt;P&gt;I hope I've shed some light, and that the information is accurate. Quite some years has passed since I worked with SQL...&lt;/P&gt;&lt;P&gt;/Tomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 23:17:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Does-QV-effect-SQL-transaction-log-size/m-p/225670#M715684</guid>
      <dc:creator />
      <dc:date>2010-04-08T23:17:28Z</dc:date>
    </item>
  </channel>
</rss>

