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

Author  Topic 

keithc1
Yak Posting Veteran

88 Posts

Posted - 2004-07-01 : 14:57:08
Having a problem using DBCC Shrinkfile as follows to shrink a transaction logfile. Can someone let me know what I need to do to shrink the log file thanks.

Running
dbcc shrinkfile ('TranLogFile',100, truncateonly)
I get the following error message
Cannot shrink log file 2 (TranLogFile) because all logical log files are in use.
DbId FileId CurrentSize MinimumSize UsedPages EstimatedPages
------ ------ ----------- ----------- ----------- --------------
9 2 381600 32000 381600 32000


Keithc MCSE MCSA

keithc1
Yak Posting Veteran

88 Posts

Posted - 2004-07-01 : 17:58:31
Going to answer my own question here. I went ahead and issued a
BACKUP LOG LogName WITH TRUNCATE_ONLY and after that i was able to resolve the above error.

Keithc MCSE MCSA
Go to Top of Page
   

- Advertisement -