Re: what is the command to cut down the size of log file

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Sue Hoegemeier (Sue_H_at_nomail.please)
Date: 05/11/04


Date: Mon, 10 May 2004 20:41:55 -0600

To physically reduce the size of the log, you can use dbcc
shrinkfile. See books online for more information on this
command.
If you need to truncate the log (not the same as reducing
the size), backup the log using backup log which is also
documented in books online.

-Sue

On Tue, 11 May 2004 10:09:07 +0800, "izumi" <test@test.com>
wrote:

>what is the command to cut down the size of log file
>



Relevant Pages

  • Re: how to shrink the .LDF ? -- spanish subtitled
    ... DBCC SHRINKFILE is not a truncate command. ... Commmand to truncate the Log is BACKUP LOG command. ...
    (microsoft.public.sqlserver.setup)
  • Re: identity not begins from zero
    ... see DBCC CHECKIDENT in Books Online. ... For a code sample of TRUNCATE TABLE: ... For a code sample of DBCC CHECKIDENT: ...
    (microsoft.public.sqlserver.programming)
  • Re: How to reset the identity value to 1 after all rows have been deleted?
    ... both options solved the matter. ... > You can either truncate the table or run DBCC CHECKIDENT with the RESEED ... See the Books Online for details. ...
    (microsoft.public.sqlserver.programming)
  • Re: Massive Log Files
    ... command with the TRUNCATE_ONLY option, you can find more info in books ... Co-Author SQL Server 2000 Programming by Example ... > We have a problem with huge log files for our SQL Server databases. ... > We've been digging through Books Online and trying various esoteric ...
    (microsoft.public.sqlserver.tools)
  • Re: bcp out and bcp in dont give the same number of rows
    ... DBCC SHOWCONTIG (Reger books online for info) command. ... Cause for the fragmentation is because of the DML commands (Insert, ...
    (microsoft.public.sqlserver.tools)