Re: Hanging during READ_COMMITTED_SNAPSHOT ON
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Thu, 25 May 2006 14:33:03 +0000 (UTC)
pb648174 (google@xxxxxxxxxxx) writes:
When issuing the below command on any of our databases, it just hangs
forever.
ALTER DATABASE DBName SET READ_COMMITTED_SNAPSHOT ON;
I realize that all connections expect the query window need to be
closed and that is the case I think, or at least we are resetting the
web server and still see the issue. The only way I have been able to
fix it is to completely stop and restart the database server, then
issue the command and it returns immediately.
Did you use sp_who to see what other connections to the database that
were active?
You can use
ALTER DATABASE db SET SINGLE_USER WITH ROLLBACK IMMEDIATE
as a guick way to get everyone out. Don't forget to set it back to
multi user when you are done.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- Follow-Ups:
- Re: Hanging during READ_COMMITTED_SNAPSHOT ON
- From: pb648174
- Re: Hanging during READ_COMMITTED_SNAPSHOT ON
- References:
- Hanging during READ_COMMITTED_SNAPSHOT ON
- From: pb648174
- Hanging during READ_COMMITTED_SNAPSHOT ON
- Prev by Date: Re: field is part of an index
- Next by Date: Re: Web Application Testing
- Previous by thread: Hanging during READ_COMMITTED_SNAPSHOT ON
- Next by thread: Re: Hanging during READ_COMMITTED_SNAPSHOT ON
- Index(es):
Relevant Pages
|
Loading