hello therewhy are the values from sp_spaceused different than FROM sys.dm_db_index_physical_stats(DB_ID(DB_NAME()), NULL, NULL, NULL, 'SAMPLED') AS ps -- (databaseID, ObjectID,null,null,'SAMPLED') INNER JOIN sys.indexes AS b ON ps.object_id = b.object_id AND ps.index_id = b.index_id INNER JOIN sys.all_objects AS o ON o.object_id = ps.object_id
I want to be able to know exactly how much physical space is used by indexes and then another query for finding the exact physical data being used to estimate new server size.If you don't have the passion to help people, you have no passion