Database/MS-SQL
[스크랩] ghost cleanup
99iberty
2017. 10. 24. 17:18
1. 수동으로 ghost cleanup task 수행
DBCC ForceGhostCleanup
---> 업무부하가 덜한 시간에 수행 필요
2. 현재 Ghost Row (ghost record) 확인 방법
http://www.sqlserver-dba.com/2013/03/how-to-check-for-sql-ghost-records.html
SELECT
db_name(database_id),object_name(object_id),ghost_record_count,version_ghost_record_countFROM sys.dm_db_index_physical_stats(DB_ID(N'db_name'), OBJECT_ID(N'table_name'), NULL, NULL , 'DETAILED');