473,504 Members | 13,601 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to release a table lock..?

deepuv04
227 Recognized Expert New Member
hi,
One of the table in my database is got locked. actually it has many dependencies in the database. i don't know where it has get locked.

how can i unlock the table with out restarting database or system. any help is appriciated.


thanks
Jan 29 '08 #1
6 43535
ck9663
2,878 Recognized Expert Specialist
hi,
One of the table in my database is got locked. actually it has many dependencies in the database. i don't know where it has get locked.

how can i unlock the table with out restarting database or system. any help is appriciated.


thanks
kill the process that locks it..

-- ck
Jan 29 '08 #2
deepuv04
227 Recognized Expert New Member
kill the process that locks it..

-- ck

Thanks for reply...
can you please tell me how to know which process is get locked or what are the processes are running on the database server....?

thanks
Jan 30 '08 #3
ck9663
2,878 Recognized Expert Specialist
Thanks for reply...
can you please tell me how to know which process is get locked or what are the processes are running on the database server....?

thanks
on your sql 2000 enterprise manager , go to Management - Current Activity - Process Info. check the Blocked By Column to get the process id that's locking your process. click the process id. right-lick then choose Kill Process


-- ck
Jan 30 '08 #4
deepuv04
227 Recognized Expert New Member
on your sql 2000 enterprise manager , go to Management - Current Activity - Process Info. check the Blocked By Column to get the process id that's locking your process. click the process id. right-lick then choose Kill Process


-- ck

Thank you for your kind reply.... it is really very helpful for me
Jan 31 '08 #5
sbharate
2 New Member
Yes , Killing the process the is the answer of above question which removes the lock from table in database, but

Offcourse , it will terminate the current process which saves my data into database.





My Scenarion : We are processing policies and we are having concurrentConsumers=20; so while working in concurrent environemnt,
1st consumer will locks the table for manipulation,
2nd consumers will locks the table for manipulation,
3rd consumers will locks the table for manipulation,
4th consumers will locks the table for manipulation,
5th consumers will locks the table for manipulation,
.
.
.
.
and
20th consumers will locks the table for manipulation,

Here, tables are locked so it may be possibility that 5th consumer is waiting for releasing that lock.

So I have to avoid "LockAcquistionException".

Please help me in this.

Many thanks in advance.

Waiting for quick reply.
Feb 6 '14 #6
ashish1305
1 New Member
I am also facing the same issue .
please help on this.

Many thanks in advance
Feb 6 '14 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

4
7743
by: John P. Speno | last post by:
So you have this problem, and you decide to use threads to solve it... System is Python 2.3.3 on Solaris 9. I'm using the classic Python thread model. Main thread puts stuff into a...
1
3831
by: M Wells | last post by:
Hi All, I have a database that is serving a web site with reasonably high traffiic. We're getting errors at certain points where processes are being locked. In particular, one of our people...
6
3968
by: gdekhayser | last post by:
To any and all; I have a very large table (16Mil+ records), for which I want to delete about 8 Million records. There are a few indexes on this table. Is there a way that I can run either a...
7
22457
by: Joško Šugar | last post by:
Which lock type or isolation level should I use to be sure that no one will read or write or do anything with the table I'm using? Code block should look something like this: lock table ...
2
11340
by: G.W. Lucas | last post by:
I apologize if this is a RTFM question, but I have not been able to find a definitive answer elsewhere. Does a "REINDEX TABLE" lock the table while it is working? Can applications write data to...
8
6788
by: Roy Padgett | last post by:
I have a combo box where users select the customer name and can either go to the customer's info or open a list of the customer's orders. The RowSource for the combo box was a simple pass-through...
4
6655
by: chinni0719 | last post by:
how to release table variables when work is done in cursor Declare @Querydeleted varchar(1000)
7
1836
dlite922
by: dlite922 | last post by:
I need to do some sort of Locking mechanism at interface level, instead of DB Level. I know how MySQL table locking works, but that won't work in my scenerio. Requirements: When someone is...
1
2248
nirmalsingh
by: nirmalsingh | last post by:
hai all, i want to lock a table to avoid others to use. for eg table name is "customer" and then i want to unlock the table. how to do this? i am using sql server 2005. Thanx in advance....
0
1361
by: John Roberts | last post by:
Hi guys, My database is accessed by several users. When the user opens my report it first makes a table of temporary data from one query, then uses another query on that table to populate my...
0
7213
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5610
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4698
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
406
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.