database snapshot

  • I have created a database snapshot for one database (25 GB).

    Is it possible to alter database snapshot's datafile to 15 GB.

  • Database snapshots are read only. Completely

    That said, it's highly unlikely that the snapshot is taking the full 25GB. Snapshots use sparse file technology where the file is only as big as the data in it, not the size of the source database.

    Check the properties of the file and check the 'size on disk'. That's how much space it's actually taking up.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Thanks for the update.

    In our case, data file is 96% used and we are getting alerts as it crossed the threshold.

    So I tried to increase the datafile size but with out success.

    So in and all, we can't increase/decrease the datafile size of a snapshot database..right!

  • p.brat.23 (11/6/2010)


    Thanks for the update.

    In our case, data file is 96% used and we are getting alerts as it crossed the threshold.

    The source database or the snapshot?

    So in and all, we can't increase/decrease the datafile size of a snapshot database..right!

    The snapshot will never be bigger than the database was at the time the snapshot was created. The file is Sparce (and no alerts can look at that), the size will appear as the same as the source database, the size on disk will be lower usually.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • p.brat.23 (11/6/2010)


    Thanks for the update.

    In our case, data file is 96% used and we are getting alerts as it crossed the threshold.

    So I tried to increase the datafile size but with out success.

    So in and all, we can't increase/decrease the datafile size of a snapshot database..right!

    When was the snapshot created? Normally, you would create a database snapshot for a short period of time and then drop it.

    What is the purpose of this snapshot - and why do you still need it?

    Jeffrey Williams
    “We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”

    ― Charles R. Swindoll

    How to post questions to get better answers faster
    Managing Transaction Logs

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

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