Re: cut the size of the log
From: Peter Yeoh (nospam_at_nospam.com)
Date: 06/28/04
- Next message: Nigel Rivett: "Re: cut the size of the log"
- Previous message: Bob Clegg: "Re: Stored Procedure Array Parameter"
- In reply to: izumi: "cut the size of the log"
- Next in thread: izumi: "Re: cut the size of the log"
- Reply: izumi: "Re: cut the size of the log"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 28 Jun 2004 11:49:04 +0800
If you are using a FULL or BULK LOGGED recovery model (SELECT
SERVERPROPERTYEX ('<db name>', 'RECOVERY), you can't shrink the log file
unless you backup the transaction log or truncate it. If you are using the
SIMPLE recovery model, you can't shrink it much if there are open
transactions that happen to occupy the end of the file.
Peter Yeoh
http://www.yohz.com
Need smaller SQL2K backup files? Try MiniSQLBackup
"izumi" <test@test.com> wrote in message
news:%23VPGv%23KXEHA.2408@tk2msftngp13.phx.gbl...
> I use this command but it doesnot work
>
> cannot cut the size of the log to 2MB
>
> DBCC SHRINKFILE(ABC_log,2)
>
> what is the correct command actually pls?
>
>
- Next message: Nigel Rivett: "Re: cut the size of the log"
- Previous message: Bob Clegg: "Re: Stored Procedure Array Parameter"
- In reply to: izumi: "cut the size of the log"
- Next in thread: izumi: "Re: cut the size of the log"
- Reply: izumi: "Re: cut the size of the log"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|