1
0
mirror of https://github.com/alex-bochkov/ssms-addin.git synced 2025-11-23 22:04:53 +02:00

Update shrink-all-log-files.sql

This commit is contained in:
Alexey Bochkov
2019-01-18 14:05:01 -08:00
committed by GitHub
parent c3a2ca54b1
commit 570e84ed79

View File

@@ -1,3 +1,5 @@
/* this is terrible idea, don't do it */
SELECT 'USE [' + DB_NAME(database_id) + ']
GO
DBCC SHRINKFILE (N''' + name + ''' , 0, TRUNCATEONLY)