Two SQL stored procedures, FixAllocatedSpace and FixCurrentSpace, can resolve issues that occur with space accounting. These procedures correct the space usage and allocations for a database when numbers in the DBC.DatabaseSpace table do not reflect the actual space and allocations.