1.进入紧急模式
ALTER DATABASE test SET EMERGENCY;
GO
2.恢复只有MDF的数据库
sp_attach_single_file_db 'ContosoWF', 'E:\Xunlei\ContosoWF.mdf'
1.进入紧急模式
ALTER DATABASE test SET EMERGENCY;
GO
2.恢复只有MDF的数据库
sp_attach_single_file_db 'ContosoWF', 'E:\Xunlei\ContosoWF.mdf'
转载于:https://www.cnblogs.com/DotNetEarthworm/archive/2008/12/19/1358454.html