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

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

  • /www/wwwroot/wiki.hostingcloud.com.ua/data/attic/obrezka_tranc_fajlov_sistemnix_bd_sql.1749626370.txt.gz
  • Последнее изменение: 2025/06/11 18:19
  • (внешнее изменение)