Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

database snapshot Expand / Collapse
Author
Message
Posted Saturday, November 06, 2010 2:36 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, February 22, 2011 3:54 AM
Points: 3, Visits: 89
I have created a database snapshot for one database (25 GB).

Is it possible to alter database snapshot's datafile to 15 GB.
Post #1016861
Posted Saturday, November 06, 2010 11:51 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 1:57 PM
Points: 41,558, Visits: 34,479
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 2008, MVP
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

Post #1016875
Posted Saturday, November 06, 2010 8:34 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, February 22, 2011 3:54 AM
Points: 3, Visits: 89
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!
Post #1016906
Posted Sunday, November 07, 2010 2:36 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 1:57 PM
Points: 41,558, Visits: 34,479
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 2008, MVP
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

Post #1016921
Posted Sunday, November 07, 2010 10:31 AM
SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Thursday, April 17, 2014 11:17 AM
Points: 4,379, Visits: 9,470
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 opportunites brilliantly disguised as insurmountable obstacles.

How to post questions to get better answers faster
Managing Transaction Logs
Post #1016945
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse