dbTalk Databases Forums  

Shrinking Log file

microsoft.public.sqlserver.programming microsoft.public.sqlserver.programming


Discuss Shrinking Log file in the microsoft.public.sqlserver.programming forum.



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

Default Re: Shrinking Log file - 02-16-2005 , 07:09 AM






First of all, a good backup strategy should prevent "out of control"
transaction log growth.

With that said, you should be able to use DBCC SHRINKFILE to shrink the
transaction log file. Read up on its usage within Books Online (within the
SQL Server program group).

--
Keith


"Roy Goldhammer" <roygoldh (AT) hotmail (DOT) com> wrote

Quote:
Hello there

I have huge place with huge database

It's log file is growing very fast

Is there a way to shrink it from time to time or remove old changes?





Reply With Quote
  #2  
Old   
Roy Goldhammer
 
Posts: n/a

Default Shrinking Log file - 02-16-2005 , 07:10 AM






Hello there

I have huge place with huge database

It's log file is growing very fast

Is there a way to shrink it from time to time or remove old changes?




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

Default Re: Shrinking Log file - 02-16-2005 , 07:13 AM



Have a look at these:

http://www.nigelrivett.net/Transacti...leGrows_1.html Log File issues
http://www.support.microsoft.com/?id=317375 Log File Grows too big
http://www.support.microsoft.com/?id=110139 Log file filling up
http://www.mssqlserver.com/faq/logs-shrinklog.asp Shrink File
http://www.support.microsoft.com/?id=315512 Considerations for Autogrow
and AutoShrink
http://www.support.microsoft.com/?id=256650 INF: How to Shrink the SQL
Server 7.0 Tran Log
http://www.support.microsoft.com/?id=272318 INF: Shrinking Log in SQL
Server 2000 with DBCC SHRINKFILE
http://www.karaszi.com/SQLServer/info_dont_shrink.asp Shrinking
considerations


--
Andrew J. Kelly SQL MVP


"Roy Goldhammer" <roygoldh (AT) hotmail (DOT) com> wrote

Quote:
Hello there

I have huge place with huge database

It's log file is growing very fast

Is there a way to shrink it from time to time or remove old changes?






Reply With Quote
  #4  
Old   
Keith Kratochvil
 
Posts: n/a

Default Re: Shrinking Log file - 02-16-2005 , 07:14 AM



By the way, if you don't care about your transaction log at all you can set
the recovery model to simple. I would not suggest doing that for production
databases, however. Transaction logs allow you to recover the transactions
that happened since the last database backup.

--
Keith


"Keith Kratochvil" <sqlguy.back2u (AT) comcast (DOT) net> wrote

Quote:
First of all, a good backup strategy should prevent "out of control"
transaction log growth.

With that said, you should be able to use DBCC SHRINKFILE to shrink the
transaction log file. Read up on its usage within Books Online (within
the
SQL Server program group).

--
Keith


"Roy Goldhammer" <roygoldh (AT) hotmail (DOT) com> wrote in message
news:%23QX5ViCFFHA.1296 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Hello there

I have huge place with huge database

It's log file is growing very fast

Is there a way to shrink it from time to time or remove old changes?






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.