Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 18th, 2008, 05:22 AM
Authorized User
 
Join Date: Dec 2006
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Default Lock

Hi,

I run the UPDATE statement which is taking long time to complete the transaction, in th mean time, i cancelled the UPDATE query but the concurrent user/process could not access the affected table, i mean the UPDATE corresponds to that table name. Probably i think it would have acquired Exclusive lock on it and trying to block the table from accessing.

Please help me to remove the block from the table so that other process can access in a effective way.

Thanks in advance.


Thanks,
Chandra
__________________
Thanks,
Chandra
 
Old June 18th, 2008, 03:07 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

Find the block process (select * from sysprocesses where blocked=0) find the offending blocker and kill the spid. Log on to your database server --> task manager; end the PID process that correlates with the kpid in the sysprocesses.

Jaime E. Maccou





Similar Threads
Thread Thread Starter Forum Replies Last Post
Lock Codes angelboy C# 2005 8 March 30th, 2008 12:06 PM
folder lock !!!!!!!!!!!!!! angelboy C# 2005 0 February 11th, 2007 12:39 PM
Selected Lock Type joeshea Classic ASP Basics 2 May 31st, 2006 08:49 PM
lock the screen darthziv Pro VB.NET 2002/2003 0 December 4th, 2005 03:59 AM
How do i lock ? abdusalam SQL Server 2000 1 September 28th, 2004 03:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.