The IndexSpaceUsage property returns the number of kilobytes assigned to index storage within all operating system files maintaining indexes for the referenced database.
object.IndexSpaceUsage
object
Expression that evaluates to an object in the Applies To list
Float
Read-only
HRESULT GetIndexSpaceUsage(LPFLOAT pRetVal);
Microsoft® SQL Server™ assigns database storage for index maintenance as indexes are created. A given index may use all or part of the assigned storage.