Import .bak file to a database in SQL server

2020-02-16 05:45发布

I have a file with .bak extension.

How can I import this date to a database in SQL Server?

9条回答
【Aperson】
2楼-- · 2020-02-16 06:25

On SQL Server Management Studio

  1. Right click Databases on left pane (Object Explorer)
  2. Click Restore Database...
  3. Choose Device, click ..., and add your .bak file
  4. Click OK, then OK again

Done.

查看更多
祖国的老花朵
3楼-- · 2020-02-16 06:31

Instead of choosing Restore Database..., select Restore Files and Filegroups...

Then enter a database name, select your .bak file path as the source, check the restore checkbox, and click Ok. If the .bak file is valid, it will work.

(The SQL Server restore option names are not intuitive for what should a very simple task.)

查看更多
三岁会撩人
4楼-- · 2020-02-16 06:34

You can simply restore these database backup files using native SQL Server methods, or you can use ApexSQL Restore tool to quickly virtually attach the files and access them as fully restored databases.

Disclaimer: I work as a Product Support Engineer at ApexSQL

查看更多
登录 后发表回答