Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I kill a persistent locked database connection

Status
Not open for further replies.

Cheadle

Programmer
Joined
May 1, 2001
Messages
1
Location
GB
Using SQL Server 7.0 (no SP):

We occasionally end up with a database connection listed in 'Current Activity' - 'Process Info' in Enterprise Manager that shows a status of 'rollback', but where the connection is not still in place as far as the client is concerned, i.e. the PC has been logged off the network and sometimes switched off, sometimes for 24 hours or more. SQL Server will not allow us to kill the process (killing it has no effect) which has records locked. We have had to stop and re-start SQL Server to fix this in the past. Is there a less drastic way of dealing with this problem?
 
This is a bug in SQL Server 7, and the only solution is to stop and start the SQL service. Supposably this has been corrected in SP3. (and we haven't seen this problem since upgrading to SP3 so I'd assume it's a safe bet)

-Eric
 
Ooops, I forget to mention,

This rollback occurs when a long query uses both processers. One way to prevent it from happening (if you use SMP, and you do not wish to upgrade to SP3) is to tell the server to only use one at a time per query, in the properties of the server under parallelism chose 'use [1] processer(s)'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top