Solved

Locks on SqlServer

Posted on 2012-03-31
3
252 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
[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
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

Backup Solution for AWS

Read about how CloudBerry Backup fully integrates your backups with Amazon S3 and Amazon Glacier to provide military-grade encryption and dramatically cut storage costs on any platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
This query failed in sql 2014 5 39
sql 2008 how to table join 2 31
Linked Server - SP with Param to VIew 7 22
Need to trim my database size 9 24
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

749 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