May 17, 2026, 11:40 PM
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
SELECT a.index_id, name, avg_fragmentation_in_percent, fragment_count,
|
||||
avg_fragment_size_in_pages
|
||||
FROM sys.dm_db_index_physical_stats (DB_ID('AdventureWorks2017'),
|
||||
OBJECT_ID('Sales.SalesOrderDetail'), NULL, NULL, NULL) AS a
|
||||
JOIN sys.indexes AS b ON a.object_id = b.object_id AND a.index_id = b.index_id
|
||||
Reference in New Issue
Block a user