Обрезка (tranc) файлов системних БД SQL
-- Connect to temp databse USE tempdb; GO -- Show all file of this databse EXEC sp_helpfile; GO -- This command shrinks the primary data file DBCC SHRINKFILE (tempdev, 0); GO -- This command shrinks the log file, examine the last paragraph. DBCC SHRINKFILE (templog, 0); GO
USE tempdb; EXEC sp_helpfile; DBCC SHRINKFILE (tempdev, 0); DBCC SHRINKFILE (templog, 0);
Після обрізки бажано ребутнути службу СКУЛЬ бо він може тримати фізично місце на диску під ці файли хоча данних в них вже не буде