Last active
November 27, 2018 14:30
-
-
Save alexruzenhack/41e4f2b0167df417e465080a5aabee71 to your computer and use it in GitHub Desktop.
✂️ Shrink log file of #sqlserver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE [nomeSeuBancoDeDados]; | |
CHECKPOINT; | |
GO | |
CHECKPOINT; -- run twice to ensure database file wrap-around last transactions | |
GO | |
-- 200 MB | |
DBCC SHRINKFILE(nomeSeuBancoDeDados_log, 200); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment