How do I backup a database snapshot, so I can restore it as another database (on same or different server?)
We do not wish to roll back to the snapshot, as we need both versions of the database active for testing upgrade scripts.
How do I backup a database snapshot, so I can restore it as another database (on same or different server?)
We do not wish to roll back to the snapshot, as we need both versions of the database active for testing upgrade scripts.
I don't believe you can directly backup a database snapshot, and I can't remember if this is a planned feature for the upcoming new version.
If you don't mind a few extra steps, you can do this:
It's a bit messy, and there will be some down-time for the database, however.
Another option that might get you what you need is to use a data comparison tool such as Sql Server Data Tools or Redgate Sql Compare.
Then, as long as you can get the comparison tool hooked to both database servers at the same time, you can simply use the snapshot as your source database and sync the data to your target server.