Database snapshots have been available in SQL Server Enterprise edition in the last several versions. But if you’re lucky enough toÂ have 2016 at work, go on and upgrade to SP1….you get extra-lucky special database snapshots in any version!
(Be sure to read the footnote for “Database snapshots” in that link.)
What are database snapshots for?
Oh what’s that? You don’t use snapshots? Well let’s see a couple of good use cases for them:
- Take a database snapshot before an upgrade, data load, or major change. It’s WAY faster than a backup, and you can roll back the changes if you need to, almost instantly.
- Customize integrity checks. When you run DBCC CheckDB or DBCC CheckTable, behind the scenes SQL Server creates a snapshot of the database to run the operation against.Â You can also choose to create a custom snapshot…among other reasons, so you can specify where the snapshot files are placed. This is especially useful for shops running tight on disk space.
Speaking of integrity checks and snapshots, Minion CheckDB is slated to come outÂ on Â this coming February 1. Â Be on the lookout…it’s going to blow yourÂ mind.