This is a script I use to shrink the log. Found in the MSDN documentation.
Regards, -DP
USE pubs; GO -- Truncate the log by changing the database recovery model to SIMPLE. ALTER DATABASE pubs SET RECOVERY SIMPLE; GO -- Shrink the truncated log file to 1 MB. DBCC SHRINKFILE (pubs_Log, 1); GO -- Reset the database recovery model. ALTER DATABASE pubs SET RECOVERY FULL; GO
Gary,
ReplyDeleteThis is a script I use to shrink the log. Found in the MSDN
documentation.
Regards,
-DP
USE pubs;
GO
-- Truncate the log by changing the database recovery model to SIMPLE.
ALTER DATABASE pubs
SET RECOVERY SIMPLE;
GO
-- Shrink the truncated log file to 1 MB.
DBCC SHRINKFILE (pubs_Log, 1);
GO
-- Reset the database recovery model.
ALTER DATABASE pubs
SET RECOVERY FULL;
GO