RE: how to shrink tran-logs of databases

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Beeeeeeeeeeeeves (Beeeeeeeeeeeeves_at_discussions.microsoft.com)
Date: 07/09/04


Date: Fri, 9 Jul 2004 01:31:02 -0700

Don't EVER leave the transaction log on 'full' recovery - it will absolutely eat your disks. ALWAYS have the default for ALL databases to be on 'simple'.

"JJ Wang" wrote:

> hi,
>
> work on sql server 2000.
>
> I have serveral dbs that are either 'full' or 'simple',
> their tran-logs have lots of empty space in it due to one-
> time big processes, hence, I want to shrink their physical
> size down.
>
> I used the below query on several dbs, some log size got
> shrinked, some didn't shrink at all. how come? I didn't
> perform a backup log operation for any of the db before I
> run this query:
>
> use db1
> DBCC SHRINKFILE (db1_log1_logical_name)
>
> many thanks.
>
> JJ
>



Relevant Pages

  • RE: how to shrink tran-logs of databases
    ... Don't EVER leave the transaction log on 'full' recovery - it will absolutely eat your disks. ... ALWAYS have the default for ALL databases to be on 'simple'. ... > I used the below query on several dbs, ... > shrinked, ...
    (microsoft.public.sqlserver.tools)
  • RE: how to shrink tran-logs of databases
    ... it will absolutely eat your disks. ... for ALL databases to be on 'simple'. ... >> shrinked, ... >> perform a backup log operation for any of the db before ...
    (microsoft.public.sqlserver.tools)
  • RE: how to shrink tran-logs of databases
    ... it will absolutely eat your disks. ... for ALL databases to be on 'simple'. ... >> shrinked, ... >> perform a backup log operation for any of the db before ...
    (microsoft.public.sqlserver.programming)
  • Re: Shrink Database Task completes too quickly (doesnt work)
    ... I do not SHRINK DATABASE nor using MP :-) ... But launch the PROFILER and see what SQL Server does behind the scenes. ... I have created a maintenance plan on SQL 2005 SP3 Enterprise Edition ... All other steps complete the way they supposed to but shrink databases ...
    (microsoft.public.sqlserver.server)
  • Re: Shrink Database Task completes too quickly (doesnt work)
    ... I do not SHRINK DATABASE nor using MP :-) ... I have created a maintenance plan on SQL 2005 SP3 Enterprise Edition ... All other steps complete the way they supposed to but shrink databases ... DBCC SHRINKDATABASE. ...
    (microsoft.public.sqlserver.server)