/****** Script for SelectTopNRows command from SSMS ******/
USE MYDB;
GO
-- Truncate the log by changing the database recovery model to SIMPLE.
ALTER DATABASE MYDB
SET RECOVERY SIMPLE;
GO
-- Shrink the truncated log file to 1 MB.
DBCC SHRINKFILE (MYDB_Log, 1);
GO
-- Reset the database recovery model.
ALTER DATABASE MYDB
SET RECOVERY FULL;
GO
If the db is still functional, do not restart, try running these to clear up space to allow for a database shrink
truncate table [CRONUS$Job Queue Log Entry$437dbf0e-84ff-417a-965d-ed2bb9650972]
delete FROM [CRONUS].[dbo].[CRONUS$Job Queue Entry$437dbf0e-84ff-417a-965d-ed2bb9650972]
where [Object ID to Run] = 197
USE [CRONUS]
GO
DBCC SHRINKDATABASE(N'CRONUS' )
GO
No comments:
Post a Comment