Solved

Large Lock in sql2005

Posted on 2013-01-09
1
252 Views
Last Modified: 2013-01-14
I have one session_id exist since 3rd-Jan, It have hold large number of lock and this caused some performance degrade with our db, I just curious why it does not release the lock ? If I kill this session, it might take long time to rollback as the number of lock are extremely large.


Number-of-lock
0
Comment
Question by:motioneye
1 Comment
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
Comment Utility
usually this is due to "missing indexes", as a index will make sure locks are not on pages or full tables, but only on row level (if possible)
of course, this is only possible for OLTP transactions, which indeed work on 1 (or few) rows.
if you have large batches running, they will best run on full tables.

so, you need to check what the session (111 and 107) are doing ...
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Recently, when I was asked to create a new SQL 2005 cluster, Microsoft released a new service pack for MS SQL 2005 what is Service Pack 3. When I finished the installation of MS SQL 2005 I found myself troubled why the installation of SP3 failed …
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This video discusses moving either the default database or any database to a new volume.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now