Hi,
We are on SQL 7 and have been facing a peculiar problem. We have a table which contains approx .5 million records. We perform all 3 kinds of operation on the table Insert/Update and Delete but the steady state size is .5 million records only.
As per the table size calculations, it should be taking approx. 100 MB of data space but we discovered recently that it was actually accounting for 22 GB of space. It has a primary clustered key and besides that there are no indexes. The database has auto-update statistics on and the fill factor for primary index has been defined as default 0.
We could not figure out the reason for this excessive disk space utilisation. So we copied the entire table data to a temporary table and truncated the original table and copied back data from the original table and now the table was taking up disk space as expected (100MB only).
Now after 15 days of subsequent operations, again the table size is .5 million records only but the storage space is 5 GB. Has anyone faced similar problems? Any clues what starts consuming the storage space? We have very frequent queries on this table - 2000+ in a day - does auto update statistics or query caching have anything to do with it?
Hoping for some ideas/solutions.
RT
We are on SQL 7 and have been facing a peculiar problem. We have a table which contains approx .5 million records. We perform all 3 kinds of operation on the table Insert/Update and Delete but the steady state size is .5 million records only.
As per the table size calculations, it should be taking approx. 100 MB of data space but we discovered recently that it was actually accounting for 22 GB of space. It has a primary clustered key and besides that there are no indexes. The database has auto-update statistics on and the fill factor for primary index has been defined as default 0.
We could not figure out the reason for this excessive disk space utilisation. So we copied the entire table data to a temporary table and truncated the original table and copied back data from the original table and now the table was taking up disk space as expected (100MB only).
Now after 15 days of subsequent operations, again the table size is .5 million records only but the storage space is 5 GB. Has anyone faced similar problems? Any clues what starts consuming the storage space? We have very frequent queries on this table - 2000+ in a day - does auto update statistics or query caching have anything to do with it?
Hoping for some ideas/solutions.
RT