Import .bak file to a database in SQL server

前端 未结 12 1815
悲哀的现实
悲哀的现实 2020-12-22 17:51

I have a file with .bak extension.

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

12条回答
  •  南笙
    南笙 (楼主)
    2020-12-22 18:07

    Simply use

    sp_restoredb 'Your Database Name' ,'Location From you want to restore'

    Example: sp_restoredb 'omDB','D:\abc.bak'

提交回复
热议问题