You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
640 B
18 lines
640 B
USE [Minus8]
|
|
GO
|
|
|
|
DELETE FROM [Minus8].[dbo].[tb_sys_exceptionlog] where create_date < '2021-05-16';
|
|
GO
|
|
DELETE FROM [Minus8].[dbo].[tb_sys_session] where create_date < '2021-05-16';
|
|
GO
|
|
DELETE FROM [Minus8].[dbo].[tb_sys_manuallog] ;
|
|
GO
|
|
DELETE FROM [Minus8].[dbo].[tb_ord_message_log_record] where log_uid in (SELECT uid FROM [Minus8].[dbo].[tb_ord_message_log] where create_date < '2021-05-09');
|
|
GO
|
|
DELETE FROM [Minus8].[dbo].[tb_ord_message_log] where create_date < '2021-05-09';
|
|
GO
|
|
|
|
ALTER DATABASE [Minus8] SET RECOVERY SIMPLE WITH NO_WAIT
|
|
DBCC SHRINKFILE('Minus8_log', 1)
|
|
-- ALTER DATABASE [Minus8] SET RECOVERY FULL WITH NO_WAIT
|
|
GO
|