Đây là script Shrink Log để giúp ae giảm bớt dụng lượng cho database của mình, ae tự thay thế vào để phù hợp với data của mình nhé.
USE BettingGameCore
go
ALTER DATABASE BettingGameCore
SET RECOVERY SIMPLE
GO
DBCC SHRINKFILE (BettingGameCore_log, 1)
GO
-- ALTER DATABASE BettingGameCore
-- SET RECOVERY FULL
USE [BettingGameCore.History]
go
ALTER DATABASE [BettingGameCore.History]
SET RECOVERY SIMPLE
GO
DBCC SHRINKFILE ([BettingGameCore.History_log], 1)
GO
-- ALTER DATABASE [BettingGameCore.History]
-- SET RECOVERY FULL
USE [eBankGame.ChickenFightDB]
go
ALTER DATABASE [eBankGame.ChickenFightDB]
SET RECOVERY SIMPLE
GO
DBCC SHRINKFILE ([eBankGame.ChickenFightDB_log], 1)
GO
Xem toàn bộ nội dung bên dưới:
USE BettingGameCore
go
ALTER DATABASE BettingGameCore
SET RECOVERY SIMPLE
GO
DBCC SHRINKFILE (BettingGameCore_log, 1)
GO
-- ALTER DATABASE BettingGameCore
-- SET RECOVERY FULL
USE [BettingGameCore.History]
go
ALTER DATABASE [BettingGameCore.History]
SET RECOVERY SIMPLE
GO
DBCC SHRINKFILE ([BettingGameCore.History_log], 1)
GO
-- ALTER DATABASE [BettingGameCore.History]
-- SET RECOVERY FULL
USE [eBankGame.ChickenFightDB]
go
ALTER DATABASE [eBankGame.ChickenFightDB]
SET RECOVERY SIMPLE
GO
DBCC SHRINKFILE ([eBankGame.ChickenFightDB_log], 1)
GO
Xem toàn bộ nội dung bên dưới: