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


Database Snapshots


Database Snapshots

Author
Message
DavidSimpson
DavidSimpson
SSCommitted
SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)

Group: General Forum Members
Points: 1518 Visits: 1087
A database snapshot cannot be backed up, either with SSMS or any third party software that I'm aware of. Technically since a db snapshot is viewed as a read-only database, a third party software could read the database and create it's own backup file... but it cannot use the SQL backup agents.

A Snapshot Backup is a not a database snapshot in the sense CREATE DATABASE ... AS SNAPSHOT, instead it's a method supported by SQL Server for performing database backups.

As BOL states the full, partial or file backup types can utilize this method for backing up a database. You are not performing a full/partial/file backup against a database snapshot created by the DDL statement.

David



Raghu Pyapili
Raghu Pyapili
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: 16
Thanks for your thoughts! The intent of the question was not to challenge you SQL Gurus, it was a "trick" question in fact to gain more thoughts from you all.
bitbucket-25253
bitbucket-25253
SSCoach
SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)

Group: General Forum Members
Points: 15065 Visits: 25280
Raghu

Agreed your question did excellently perform the task of teaching. Spent a lot of time with BOL and Technet,+ MSDN and perhaps learned more than what I wanted to know, but teach me something new - YES

If everything seems to be going well, you have obviously overlooked something.

Ron

Please help us, help you -before posting a question please read

Before posting a performance problem please read
Anipaul
Anipaul
SSCrazy Eights
SSCrazy Eights (9.6K reputation)SSCrazy Eights (9.6K reputation)SSCrazy Eights (9.6K reputation)SSCrazy Eights (9.6K reputation)SSCrazy Eights (9.6K reputation)SSCrazy Eights (9.6K reputation)SSCrazy Eights (9.6K reputation)SSCrazy Eights (9.6K reputation)

Group: General Forum Members
Points: 9591 Visits: 1407
Nice question...



UMG Developer
UMG Developer
Hall of Fame
Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)

Group: General Forum Members
Points: 3916 Visits: 2204
Nice question, at least in it's current form.
BuntyBoy
BuntyBoy
SSChasing Mays
SSChasing Mays (640 reputation)SSChasing Mays (640 reputation)SSChasing Mays (640 reputation)SSChasing Mays (640 reputation)SSChasing Mays (640 reputation)SSChasing Mays (640 reputation)SSChasing Mays (640 reputation)SSChasing Mays (640 reputation)

Group: General Forum Members
Points: 640 Visits: 405
I also beileve, beetr take a fresh snaphot

===========================================
Better try and fail than not to try at all...

Database Best Practices

SQL Server Best Practices
Tom Thomson
Tom Thomson
One Orange Chip
One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)

Group: General Forum Members
Points: 25184 Visits: 12488
Brian LeBlanc-449582 (12/18/2008)
The premise of the question seemed to be “how to reduce the size of the snapshot?” and the answer is – Take another snapshot. I agree this is a crappy question…If a DBA came up to this scenario and was asked to reduce the size of the snapshop file by doing a backup and he replied “you can’t backup a Snapshot” and walked away, I would fire them. I would expect the DBA to say “I’ll take care of it” and do another snapshot to reduce the size.


I would expect the DBA to ask whether the snapshot was still required (because reports or other queries against the state of play as at that snapshot date were still needed) not to go off and replace the snapshot with a new one (and effectively make it impossible or at least very expensive to run those required queries and/or generate those required reports). I would also expect him to think I was an idiot for having raised the issue - if that snapshot was no longer required for report generation or ad hoc queries it should have been deleted already, so that its size would be irrelevant.

It's a good question not a crappy one, it rewuires you to think outside the narrow tecnhical box and consider real business needs.

Of course I intensely dislike the explanation, which doesn't attempt to explain why "take another snapshot" (as opposed to "delete the snapshot because it's obsolete") can never be the right answer (you might want to do that, but not because this one is too big, only because there is a frozen state you want to be able to run queries against and this snapshot doesn't represnt that state).

Tom

Tom Thomson
Tom Thomson
One Orange Chip
One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)

Group: General Forum Members
Points: 25184 Visits: 12488
bitbucket-25253 (12/18/2008)
Webrunner
It helped me, in the sense that I was reminded that you can't take a backup of a snapshot


I suggest you go to BOL (The link is in my previous post), which says you can backup a snapshot. True it is 3rd party software, but SQL 2005 contains built in specific capability to allow the 3rd party software to perform a back up of a snapshot.

So can a snapshot be backed up or not. Certainly not using SSMS or other SQL tools generally available to a DBA, but it can be backed up..

No, a snapshot can't be backed up.

A snapshot backup of a database is not a backup of a database snapshot, it's yet another backup[ mechanism and yet another differnet use of the word "snapshot" (to go alongside database snapshot and replication snapshot) and yet another useul point-in-time view of a database (to go alongside database snapshot and shared scalable database).

When I say a database snapshot can't be backed up, I don't mean that it's impossible to take a copy of the sparse data (by splitting a mirror or whatever means you like) but I do mean that that copy is NOT a backup from which you can ever restore the snapshot database, ie it's not a backup at all.

Tom

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