Last active
February 14, 2017 19:01
-
-
Save pedroinfo/78bfca716a8486d3ee7af447b7dd1c71 to your computer and use it in GitHub Desktop.
SHRINK - SQL Server
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 SEUDB | |
GO | |
-- Truncate the log by changing the database recovery model to SIMPLE. | |
ALTER DATABASE SEUDB | |
SET RECOVERY SIMPLE; | |
GO | |
-- Shrink the truncated log file to 1 MB. | |
DBCC SHRINKFILE (SEUDB_Log, 1); | |
GO | |
-- Reset the database recovery model. | |
ALTER DATABASE SEUDB | |
SET RECOVERY FULL; | |
GO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment