首页 > 数据库技术 > 详细

Error "At least one file is needed for database attach" for DB attach

时间:2018-05-22 12:07:13      阅读:306      评论:0      收藏:0      [点我收藏+]

While we want to attach a singal .MDF file(without log file) for a DB in SQL SERVER, we will meet the problem "At least one file is needed for database attach" enven if renamed the MDF to the same name with target DB.

 

we can use the cmd as below:

CREATEDATABASE AdventureWorks2008R2 ON

(FILENAME=N‘E:\SQLBI\AdventureWorks2008R2.mdf‘)

FORATTACH

GO

Error "At least one file is needed for database attach" for DB attach

原文:https://www.cnblogs.com/muzilingling/p/9070627.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!