Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 dbcc shrinkfile error

Author  Topic 

rb1373
Yak Posting Veteran

93 Posts

Posted - 2005-06-02 : 17:43:06
I am trying truncate a transaction log that has grown too large. When I run this command:

backup log MyDB with truncate_only

followed by:

dbcc shrinkfile (MyDB_log, 4000)

I recieve this error:

"Cannot shrink log file 2 (MyDB_log) because all logical log files are in use."

How can I resolve this issue?

eyechart
Master Smack Fu Yak Hacker

3575 Posts

Posted - 2005-06-02 : 18:24:18
you can follow the steps in this document

http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q272318




-ec
Go to Top of Page
   

- Advertisement -