SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


database snapshot


database snapshot

Author
Message
p.brat.23
p.brat.23
SSC Rookie
SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)

Group: General Forum Members
Points: 27 Visits: 92
I have created a database snapshot for one database (25 GB).

Is it possible to alter database snapshot's datafile to 15 GB.
GilaMonster
GilaMonster
SSC Guru
SSC Guru (411K reputation)SSC Guru (411K reputation)SSC Guru (411K reputation)SSC Guru (411K reputation)SSC Guru (411K reputation)SSC Guru (411K reputation)SSC Guru (411K reputation)SSC Guru (411K reputation)

Group: General Forum Members
Points: 411884 Visits: 47116
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


p.brat.23
p.brat.23
SSC Rookie
SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)

Group: General Forum Members
Points: 27 Visits: 92
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!
GilaMonster
GilaMonster
SSC Guru
SSC Guru (411K reputation)SSC Guru (411K reputation)SSC Guru (411K reputation)SSC Guru (411K reputation)SSC Guru (411K reputation)SSC Guru (411K reputation)SSC Guru (411K reputation)SSC Guru (411K reputation)

Group: General Forum Members
Points: 411884 Visits: 47116
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


Jeffrey Williams 3188
Jeffrey Williams 3188
SSC-Dedicated
SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)

Group: General Forum Members
Points: 34546 Visits: 10097
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
Problems are opportunities brilliantly disguised as insurmountable obstacles.

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

Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum







































































































































































SQLServerCentral


Search