How to restore the backup database or restore to another file in sql server

Only this article is used to record the moment of diabetes insipidus when the database is restored in a formal environment.

1. Restore Dafa One:

  1. First, create a new database;
    Insert picture description here
  2. Then just build a table casually, no problem.
    Insert picture description here
  3. Back up
    Insert picture description here
  4. It's best to add to the directory you can remember
    Insert picture description here
  5. Create a new School1 library to store the restored library. Follow the steps below.
    Insert picture description here
    Insert picture description hereInsert picture description here
    I just reported an error in the database just now, it doesn't matter, try the above picture again. Proceed to the figure below.
    Insert picture description here
    Insert picture description here
    Insert picture description here
  6. Click OK, the restoration is complete. If not, try again. Or, after restoring, you find that the database becomes a sauce, then right-click the database, select properties, and then click the figure, select Multi_user. carry out
    Insert picture description here

2. Restore Dafa II:

Next, proceed to the second one; both the
official library and the test library are connected. What to do if it's swollen, it's troublesome.
Method:Build another test library, such as School2Up. (First build the library. There is in the picture above, so I won't repeat it.)
After the build is completed, just like restoring School1 above, one meal operation.
thenDelete the School1 library and change the name of School2 to School1;

Guess you like

Origin blog.csdn.net/hello_mr_anan/article/details/104795781