Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.


Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

Not applicable

Record locking when loading data into a QV app


Using QV10, we've started to get some problems around record locking when reloading data into our apps.  It mainly seems to happen when we reload an app from our local desktop QV that is running a SQL (2005) stored procedure from within the script.  We are using the standard ODBC SQL Server drivers to do this.

This problem seems a little intermittent, but the symptons are the SP runs very slowly (but does complete) and users in our live software application experience deadlock errors when trying to access parts of the system using the tables these SPs are using.

Has anyone else experienced similar things?  Is there a setting or way around this?  I'm not sure how QV performs its record locking, but it certainly appears to be locking something it shouldn't!



Tags (2)
3 Replies
Honored Contributor II

Record locking when loading data into a QV app

There is a "with no locks" SQL modifier for SQL Server queries.

More info:



Record locking when loading data into a QV app

I'm unclear if you're using SQL server or some other SQL-based system.  In DB2, for instance, you must specify "for fetch only" in the SQL to prevent locks.  I assume there are similar statements in most SQL-based systems.

Not applicable

Record locking when loading data into a QV app

Thanks Guys!

I ended up switching the Isolation level for this Stored Procedure to be Read Uncommitted, which seems to have sorted out the problem.  I still don't really understand why this would cause a problem through the ODBC driver via Qlikview and not when running through our VB.Net Application, but there you go - it's sorted anyway!