Solved

Large Lock in sql2005

Posted on 2013-01-09
1
257 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
ID: 38762029
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

770 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