查看数据表的内外碎片情况
摘要:
View Code use DBNamegoselect page_count,avg_page_space_used_in_percent,record_count,avg_record_size_in_bytes,avg_fragmentation_in_percent,fragment_countfrom sys.dm_db_index_physical_stats(DB_ID('DBName'),OBJECT_ID('TableName'),NULL,NULL,'sampled')DBCC ShowContig(TableName)查看索 阅读全文
posted @ 2013-03-18 15:15 遗忘海岸 阅读(300) 评论(0) 推荐(0) 编辑