obrezka_tranc_fajlov_sistemnix_bd_sql

Обрезка (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);

Після обрізки бажано ребутнути службу СКУЛЬ бо він може тримати фізично місце на диску під ці файли хоча данних в них вже не буде

  • /sites/data/pages/obrezka_tranc_fajlov_sistemnix_bd_sql.txt
  • Последнее изменение: 2025/08/15 11:07
  • tro