RE: truncate the transaction log

RE: truncate the transaction log

 

  

First of all, your database is in Full Recovery Mode?

You can use:

BACKUP LOG pubs WITH TRUNCATE_ONLY

if you want to shrink... you can run a job with this:

DBCC SHRINKFILE(pubs_log, 2)
GO
BACKUP LOG pubs WITH TRUNCATE_ONLY
GO
DBCC SHRINKFILE(pubs_log,2)
GO

(but it's better you made a Backup Log a few minutes before... and a Full
Backup a few minutes after... if you made this, you can always make a
PITR!!!)

Regards,

Luís Manuel Martins Ganhão
Novabase, Desenvolvimento à Medida
Serviços de Valor Acrescentado
DBA Oracle Certified Professional 8i
Av. Engº Duarte Pacheco, Torre 1 - 9º
1099-078 Lisboa
Tel: 351213836300
Tlm +351967610858
http://novabase.pt
CONFIDENCIALIDADE: Este e-mail é confidencial e apenas pode ser lido,
copiado ou utilizado pelo destinatário. Se o recebeu por engano, por favor
contacte o remetente através de e-mail ou pelo telefone + 351 21 383 63 00.
Agradecemos ainda que apague este e-mail e não divulgue o respectivo
conteúdo.
CONFIDENTIALITY: This e-mail is confidential and may be privileged. It may
be read, copied and used only by the intended recipient. If you have
received it in error, please contact the sender immediately by return e-mail
or by phoning + 351 21 383 63 00. Then please delete this e-mail and do not
disclose its contents to any person.




-----Original Message-----
From: Shawn Smith [mailto:[Email Address Removed] quarta-feira, 28 de Agosto de 2002 14:40
To: LazyDBA.com Discussion
Subject: truncate the transaction log


What is the syntax to truncate the transaction log to a database?

I thought it was truncate transaction with no_log....that appears not to be
working.

Shawn Smith
Database Administrator
Fort Worth Star-Telegram
817-390-7094
817-291-5240 cell
817-667-2757 pager
[Email Address Removed]MS Sql Server LazyDBA home page