Re: Errors on DBCC SHRINKFILE(2)
- From: "Scarab" <yw@xxxxxxxxxx>
- Date: Mon, 13 Feb 2006 14:30:10 +0800
"Scarab" <yw@xxxxxxxxxx> wrote in message
news:dsougk$gb0@xxxxxxxxxxxxxxxxxxxxxxxxx
Hi,--
When I use dbcc shrinkfile to shrink LOG file, following error occurs:
DBCC SHRINKFILE(2)
--------------------------------------------------------------------------
-----------what't
Cannot shrink log file 2 (myDB_log) because all logical log files are in
use.
(1 row(s) affected)
I have only one transaction log file in my Database, who can tell me
the matter?
If my current log file is in use, how can I find who is using it and stop
using then do the shrink operation?
Thanks.
Scarab
Thanks for your reply, It is really a great help to me.
I think it is strange because after I restart SQL Server, this error still
exists, so I run
DBCC CHECKDB, there is no error messages, but after a while, the file can be
shrinked normally.
My question is: how can I view the virtual log files which make up a
physical log file? Once I find them, I
can kill the session and release the file.
Thank.
.
- References:
- Errors on DBCC SHRINKFILE(2)
- From: Scarab
- Errors on DBCC SHRINKFILE(2)
- Prev by Date: Re: Errors on DBCC SHRINKFILE(2)
- Next by Date: Re: Errors on DBCC SHRINKFILE(2)
- Previous by thread: Re: Errors on DBCC SHRINKFILE(2)
- Next by thread: ANN: Database Workbench 2.8.1 released!
- Index(es):
Relevant Pages
|