mdf、ldf文件快速导入方法

EXEC sp_attach_db @dbname = ‘数据库名’,
@filename1 = ‘C:\Users\Administrator\Desktop\数据库名.mdf’,
@filename2 = ‘C:\Users\Administrator\Desktop\数据库名 .ldf’