Size unexpectedly doubled

  • I am working with a SQL Sever 2000 database. After making a backup and restoring it, and also detaching and reattaching

    the database, the size of the database suddenly double. Can anyone explain what might have happened? Or what can be done to get it back to the original size?

  • Ran any big index maintenance lately?

    Changed a clustered index or PK on a big table?

  • No. Nothing at all. The database has been unchanged for a few weeks. Someone requested we look at a previous version, so I did the following:

    1) Backed up the original

    2) Detached the original

    3) Rename the original with the date added as a suffix.

    4) Copied an older version to the Data folder.

    5) Attached the older version.

    6) Detached the older version.

    7) Renamed the original to its original name.

    8) Attached it, but it was not the original data.

    9) Panic set it.

    10) Restored the backup, but it was not the original data either.

    11) From this point on I was coping, detaching and attaching like crazy.

    12) Eventually, the original data was showing, but the size had doubled.

  • Is it possible that a restore appended the data to the original database (asking anyone alive for this one)?

  • What has doubled? The data file? The log file? Both?

    My suspicion is that in all the attach/detach/reattach/restore panic, you only think it has doubled in size, but it hasn't.

    What makes you think it has doubled in size?


    My blog: SQL Soldier[/url]
    SQL Server Best Practices:
    SQL Server Best Practices
    Twitter: @SQLSoldier
    My book: Pro SQL Server 2008 Mirroring[/url]
    Microsoft Certified Master: SQL Server, Data Platform MVP
    Database Engineer at BlueMountain Capital Management[/url]

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply