question

IT1 avatar image
IT1 asked

Database snapshot recovery

Hi, Just wanted to confirm if we can recover from snapshot incase of hard disk (where the database files are) failure I dont think we can but just wanted to confirm Thank You
database-snapshot
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Håkan Winther avatar image
Håkan Winther answered
You can't use it to recover from drive failure. The snapshot only contain the original values of changed records. Records that are unchanged doesn't even exist in the snapshot. Actually you need to remove the snapshot to be able to perform a restore. > "The database cannot be dropped, > detached, or restored" (books online) Read more about limitations of database snapshots at [ http://msdn.microsoft.com/en-us/library/ms189940.aspx][1] [1]: http://msdn.microsoft.com/en-us/library/ms189940.aspx
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Blackhawk-17 avatar image Blackhawk-17 commented ·
@Håkan Winther is right. A snapshot is a changed data repository. The bulk of the data is read from the actual dB and only changed pages exist in the snapshot. You can use a snapshot to revert a dB to the snapshot LSN but not to recover it as you describe.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.