时间:2021-07-01 10:21:17 帮助过:10人阅读
以示例数据库NorthWind为例 在sql窗口中执行一下语句
EXEC sp_attach_db @dbname = ‘NorthWind‘,
@filename1 = ‘C:\Users\hupengyang\Desktop\northwnd\northwnd.mdf‘, --mdf文件路径
@filename2 = ‘C:\Users\hupengyang\Desktop\northwnd\northwnd.ldf‘ --ldf文件路径
Sql Server添加mdf和ldf到数据库
标签: