Re: Delete without log ??
From: Lilian Pigallio (lpigallio_at_nospam.com)
Date: 10/29/04
- Next message: Mike Epprecht (SQL MVP): "RE: Error 1534"
- Previous message: MK: "How can I check.."
- In reply to: Tony Rogerson: "Re: Delete without log ??"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 29 Oct 2004 09:26:53 +0200
It's exactly my case... and after a lot of test I use the TRUNCATE (with
temp tables to keep the data that I need)
1) create table xxx_tmp
2) insert into xxx_tmp from xxx where yyy = zzz and ...
3) TRUNCATE TABLE xxx
4) insert into xxx from xxx_tmp
5) drop table xxx_tmp
"Tony Rogerson" <tonyrogerson@sqlserver.eu.com> wrote in message
news:OCFfJOSvEHA.4020@TK2MSFTNGP10.phx.gbl...
> If the table is 1GB and you do a delete for all the rows then you'll get
> slightly more than 1GB on the log, this can't be truncated (recycled)
until
> the transaction has completed.
>
> --
> Tony Rogerson
> SQL Server MVP
> http://www.sqlserverfaq.com?mbr=21
> (Create your own groups, Forum, FAQ's and a ton more)
>
>
- Next message: Mike Epprecht (SQL MVP): "RE: Error 1534"
- Previous message: MK: "How can I check.."
- In reply to: Tony Rogerson: "Re: Delete without log ??"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|