During development today, I found that the remote database could not be connected. In order to write the project, I had to take out the backup file from the data and import it into the local database.
(1) Create a database with the same name in the local database (it can also have a different name, the same name is to avoid errors when importing)
(2) Right-click to restore the database
The suffix of the backup file is .bak
(3) Clicking restore may report the following error
Modify the following two configurations in the options and click OK
After the system execution is completed, we can see that the backup file has been imported into the local database. Don't forget to check that your database connection string matches your database one-to-one, especially the database name, user name, and password.