Home All Groups Group Topic Archive Search About

database log file size (LDF file)

Author
7 Jul 2005 12:18 PM
Brian Henry
Our LDF log files seem to be approching 10 gigs for a database that is only
32MB in size, however the the recover model is set for bulk-logged, I know
full does a pretty much copy of the database into the log, but i thought
bulk-logged was to take up less space? We back up the database nightly to
tape, so is there any good reason to use this backup method or would it be
better to use the simple model? The server has 120GB of space for database
storage, but almost 110 of that is being used up by different database's LDF
log files... any suggestions on how to conserve space or pack the logs to
shrink them or such? thanks

we also noticed that with the size as big as it is, when the database needs
to "grow" to accomidate more data, it takes a good amount of time to expand
the size and causes time-out errors (previously it was set to grow at 15%
the previous size for the data and log files for each database, we change it
to 25MB at a time and seems to of solved the timeout issues) what do you
guys think? thanks again!

Author
7 Jul 2005 12:36 PM
John Bell
Hi

You may want to check out
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/architec/8_ar_da2_1uzr.asp and the associated links.

John

Show quote
"Brian Henry" wrote:

> Our LDF log files seem to be approching 10 gigs for a database that is only
> 32MB in size, however the the recover model is set for bulk-logged, I know
> full does a pretty much copy of the database into the log, but i thought
> bulk-logged was to take up less space? We back up the database nightly to
> tape, so is there any good reason to use this backup method or would it be
> better to use the simple model? The server has 120GB of space for database
> storage, but almost 110 of that is being used up by different database's LDF
> log files... any suggestions on how to conserve space or pack the logs to
> shrink them or such? thanks
>
> we also noticed that with the size as big as it is, when the database needs
> to "grow" to accomidate more data, it takes a good amount of time to expand
> the size and causes time-out errors (previously it was set to grow at 15%
> the previous size for the data and log files for each database, we change it
> to 25MB at a time and seems to of solved the timeout issues) what do you
> guys think? thanks again!
>
>
>
Author
7 Jul 2005 12:46 PM
Alejandro Mesa
Are you doing transaction log backups?

How to stop the transaction log of a SQL Server database from growing
unexpectedly
http://support.microsoft.com/?kbid=873235


AMB

Show quote
"Brian Henry" wrote:

> Our LDF log files seem to be approching 10 gigs for a database that is only
> 32MB in size, however the the recover model is set for bulk-logged, I know
> full does a pretty much copy of the database into the log, but i thought
> bulk-logged was to take up less space? We back up the database nightly to
> tape, so is there any good reason to use this backup method or would it be
> better to use the simple model? The server has 120GB of space for database
> storage, but almost 110 of that is being used up by different database's LDF
> log files... any suggestions on how to conserve space or pack the logs to
> shrink them or such? thanks
>
> we also noticed that with the size as big as it is, when the database needs
> to "grow" to accomidate more data, it takes a good amount of time to expand
> the size and causes time-out errors (previously it was set to grow at 15%
> the previous size for the data and log files for each database, we change it
> to 25MB at a time and seems to of solved the timeout issues) what do you
> guys think? thanks again!
>
>
>
Author
7 Jul 2005 1:53 PM
Aaron Bertrand [SQL Server MVP]
> Our LDF log files seem to be approching 10 gigs for a database that is
> only 32MB in size

http://www.aspfaq.com/2471
http://www.aspfaq.com/2446
Author
7 Jul 2005 4:57 PM
Daniel Wilson
Is AutoShrink turned on?

To "manually" get the thing back down to size, try the script at
http://support.microsoft.com/default.aspx?scid=kb;EN-US;256650


--
Daniel Wilson
Senior Software Solutions Developer
Embtrak Development Team
http://www.Embtrak.com
DVBrown Company


Show quote
"Brian Henry" <nospam@nospam.com> wrote in message
news:u%23r7F4ugFHA.2180@TK2MSFTNGP15.phx.gbl...
> Our LDF log files seem to be approching 10 gigs for a database that is
only
> 32MB in size, however the the recover model is set for bulk-logged, I know
> full does a pretty much copy of the database into the log, but i thought
> bulk-logged was to take up less space? We back up the database nightly to
> tape, so is there any good reason to use this backup method or would it be
> better to use the simple model? The server has 120GB of space for database
> storage, but almost 110 of that is being used up by different database's
LDF
> log files... any suggestions on how to conserve space or pack the logs to
> shrink them or such? thanks
>
> we also noticed that with the size as big as it is, when the database
needs
> to "grow" to accomidate more data, it takes a good amount of time to
expand
> the size and causes time-out errors (previously it was set to grow at 15%
> the previous size for the data and log files for each database, we change
it
> to 25MB at a time and seems to of solved the timeout issues) what do you
> guys think? thanks again!
>
>

AddThis Social Bookmark Button