SQL Server restores the database from a DB snapshot

Source: Internet
Author: User

Grammar:

Restore Database Db_name

From database_snapshot = ' db_snapshot_name ';

--------------------------------------------------------------------------------------------------------------- -------------------

Example:

Restore Database AdventrueWorks2012

From database_snapshot = ' adventrueworks2012_snapshot ';

Go

------------------------------

Attention:

1. You cannot manually create a snapshot of master tempdb Modle, although it is possible for SQL Server to do so internally. When it is this ability does not open up.

2, the snapshot inherits the security constraint of the source database, because it is read-only, so there is no way to change.

3. If the user is deleted from the data source, the user will also be in the snapshot.

4. You cannot back up and restore the database.

5. You cannot attach and detach a snapshot.

6. Full-text indexing is not supported.

SQL Server restores the database from a DB snapshot

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.