SQL Server itself has data import operations. However, if you want to import data from a backup file, you need to perform other operations. The following is an example.
There is already a DOE database on the SQL Server and there is a large amount of data in it. Now we are going to prepare another backup file A1.BAK (not the backup file of the DOE database) import other data (that is, add some data tables to the DOE after the import, the table has already recorded data), and keep the data of the original DOE unchanged.
1. First, create a temporary database A1;
2. Right-click Database A1 and choose all tasks> Restore database;
3. In the "Restore database" window, select "Slave Device ";
4. Click "select device ";
5. Click "add ";
6. Select the database file to be restored from the file name, such as A1.BAK;
7. Click "OK" and return to the "Restore database" window;
8. Click the option card to go to option settings;
[Content navigation] |
Page 1st: import an existing database from an SQL Server backup file |
Page 2nd: import an existing database from an SQL Server backup file |