Last active
August 5, 2017 16:23
-
-
Save ThinkZ/55432ba2857e2ad44191e1c5d4a2b130 to your computer and use it in GitHub Desktop.
SQL Server SHRINKFILE
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
Select name from data.sys.database_files where type=1; | |
DUMP TRANSACTION data with NO_LOG; | |
Backup LOG data with NO_LOG; | |
DBCC SHRINKFILE('Data_log'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment