怎样恢复只有MDF的数据库

1.进入紧急模式
ALTER DATABASE test SET EMERGENCY;

GO
2.恢复只有MDF的数据库
sp_attach_single_file_db 'ContosoWF', 'E:\Xunlei\ContosoWF.mdf'

posted @ 2008-12-19 15:55  earthworm  阅读(290)  评论(0)    收藏  举报