?
Solved

Large Lock in sql2005

Posted on 2013-01-09
1
Medium Priority
?
265 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 2000 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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

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 Backup & Restore 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.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

800 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