dbTalk Databases Forums  

Shrink Transactin Log

microsoft.public.sqlserver.server microsoft.public.sqlserver.server


Discuss Shrink Transactin Log in the microsoft.public.sqlserver.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rustom
 
Posts: n/a

Default Shrink Transactin Log - 12-23-2005 , 01:43 PM






I am running into issues when trying to shrink a transaction log file with
query analyzer on SQL 2000. I am getting this error message

Cannot shrink log file 2 because all logical log files are in use.

Thanks




Reply With Quote
  #2  
Old   
Tibor Karaszi
 
Posts: n/a

Default Re: Shrink Transactin Log - 12-23-2005 , 02:04 PM






Check out the concept of virtual log files and DBCC LOGINFO:
http://www.karaszi.com/SQLServer/info_dont_shrink.asp

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/


"Rustom" <RustomNB (AT) hotmail (DOT) com> wrote

Quote:
I am running into issues when trying to shrink a transaction log file with query analyzer on SQL
2000. I am getting this error message

Cannot shrink log file 2 because all logical log files are in use.

Thanks





Reply With Quote
  #3  
Old   
Andrew J. Kelly
 
Posts: n/a

Default Re: Shrink Transactin Log - 12-23-2005 , 02:07 PM



Sounds like you have a long running open transaction. You need to commit or
roll that back before you can shrink the log or even reuse those VLF's.
What does DBCC OPENTRAN() say for that DB?

--
Andrew J. Kelly SQL MVP


"Rustom" <RustomNB (AT) hotmail (DOT) com> wrote

Quote:
I am running into issues when trying to shrink a transaction log file with
query analyzer on SQL 2000. I am getting this error message

Cannot shrink log file 2 because all logical log files are in use.

Thanks






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.