USE [DB_NAME];
GO
-- Truncate the log by changing the database recovery model to SIMPLE.
ALTER
DATABASE [DB_NAME]
SET RECOVERY SIMPLE;
GO
-- Shrink the truncated log file to 1 MB.
DBCC SHRINKFILE ([DATABASE LOG LOGICAL NAME], [TAMANO FINAL EN MB]);
GO
-- Reset the database recovery model.
ALTER
DATABASE [DB_NAME]
SET RECOVERY FULL;
GO
No hay comentarios:
Publicar un comentario