Solved

Locks on SqlServer

Posted on 2012-03-31
3
248 Views
Last Modified: 2012-06-27
Guys

I was running a method on c# against Sqlserver and the I stoped my App but some table is still locked.

Does any one could help me how to release those locks ?

Many Thanks
0
Comment
Question by:Mortarello
3 Comments
 
LVL 9

Assisted Solution

by:OCDan
OCDan earned 250 total points
ID: 37791438
This article should help:
SQL locks
0
 
LVL 25

Accepted Solution

by:
jogos earned 250 total points
ID: 37792520
Article is on 'how to find' locks.

When you found that the locks are from a session that was from your stopped App then you only can get rid of it by killing the hanging session.
http://msdn.microsoft.com/en-US/library/ms173730(v=sql.105).aspx

And take in concideration that stopping an App may not leave sql sessions allive.
0
 

Author Comment

by:Mortarello
ID: 37792884
Tks guys
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
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.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

747 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

13 Experts available now in Live!

Get 1:1 Help Now