Hi all,
i have done fragmentation using below command
ALTER INDEX ALL ON [dbo].[Table_Name]
---------------
still the value have not been changed, when am checking Fragmentation Percentage (Avg_Fragmentation_In_Percentage) , Using Below Query
SELECT
OBJECT_NAME(A.[object_id]) as 'TableName',
B.[name] as 'IndexName',
A.[index_id],
A.[page_count],
A.[index_type_desc],
A.[avg_fragmentation_in_percent],
A.[fragment_count]
FROM
sys.dm_db_index_physical_stats(db_id(),NULL,NULL,NULL,'LIMITED') A INNER JOIN
sys.indexes B ON A.[object_id] = B.[object_id] and A.index_id = B.index_id .
Please, help me to make my fragmentation percentage to decrease.
Even, i tried using GUI (Standard Reports -> Index Physical Statistics (Checking which all tables have to be REBUILD or REORGANISE), And Getting into the table indexes and rebuild ),
Still the count hasn't changed.
Thanks in advance..