Home All Groups Group Topic Archive Search About


Author
26 Jan 2006 1:44 PM
Gaspar
In 2-3 days of work my transaction my transaction logs grows up to 500 Mb
(is it normal?).
So I do the following:
1) BACKUP LOG Mydatabase WITH TRUNCATE_ONLY
2) Using SQLManager I shink the log (truncate free space) and returns to 500
Kb.

My questions:
a) Is there any way to do this with only one command?
b) And what about scheduling it? Will affect users operations? (I mean:
doing a truncate interferes with client applications?)

Thanks!

Author
26 Jan 2006 1:55 PM
Uri Dimant
Hi

http://www.karaszi.com/SQLServer/info_dont_shrink.asp






Show quoteHide quote
"Gaspar" <nore***@no.com> wrote in message
news:%23Sh%23Q%23nIGHA.2912@tk2msftngp13.phx.gbl...
> In 2-3 days of work my transaction my transaction logs grows up to 500 Mb
> (is it normal?).
> So I do the following:
> 1) BACKUP LOG Mydatabase WITH TRUNCATE_ONLY
> 2) Using SQLManager I shink the log (truncate free space) and returns to
> 500 Kb.
>
> My questions:
> a) Is there any way to do this with only one command?
> b) And what about scheduling it? Will affect users operations? (I mean:
> doing a truncate interferes with client applications?)
>
> Thanks!
>
Are all your drivers up to date? click for free checkup

Author
26 Jan 2006 1:58 PM
Tibor Karaszi
Are you performing regular transaction log backups? If no, set the database to simple recovery mode.
There are downsides to regularly shrinking database files:
http://www.karaszi.com/SQLServer/info_dont_shrink.asp

Show quoteHide quote
"Gaspar" <nore***@no.com> wrote in message news:%23Sh%23Q%23nIGHA.2912@tk2msftngp13.phx.gbl...
> In 2-3 days of work my transaction my transaction logs grows up to 500 Mb (is it normal?).
> So I do the following:
> 1) BACKUP LOG Mydatabase WITH TRUNCATE_ONLY
> 2) Using SQLManager I shink the log (truncate free space) and returns to 500 Kb.
>
> My questions:
> a) Is there any way to do this with only one command?
> b) And what about scheduling it? Will affect users operations? (I mean: doing a truncate
> interferes with client applications?)
>
> Thanks!
>

Bookmark and Share