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


Restore from database snapshot does not appear in the history table


Restore from database snapshot does not appear in the history table

Author
Message
Roust_m
Roust_m
SSCommitted
SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)

Group: General Forum Members
Points: 1570 Visits: 1965
Hi,

I was trying to do the following:
CREATE DATABASE MYDB_ss1600 ON ... AS SNAPSHOT OF MYDB;
GO

Then:
RESTORE DATABASE MYDB FROM DATABASE_SNAPSHOT = 'MYDB_ss1600'

And finally:
SELECT top 10 [restore_date], [destination_database_name], rh.[backup_set_id], physical_device_name
FROM [msdb].[dbo].[restorehistory] rh (nolock)
JOIN [msdb].[dbo].[backupset] bs (nolock)
on rh.backup_set_id = bs.backup_set_id
JOIN [msdb].[dbo].[backupmediafamily] bmf
on bs.media_set_id = bmf.media_set_id
order by restore_date desc


But I find no trace of the restore from the snapshot.

Is this normal?

Thanks.



Amit Raut
Amit Raut
SSC Eights!
SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)

Group: General Forum Members
Points: 903 Visits: 342
Please refer http://www.sqlservercentral.com/Forums/Topic966065-1550-1.aspx
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