如何还原数据库 [英] How to restore database
本文介绍了如何还原数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的数据库中有一个mdf文件和日志文件.如何使用此文件还原数据库.请帮助我
I have an mdf file and log file in my database. How to restore the database using this files.Please help me
推荐答案
您需要将其附加到数据库服务器.试试这个:
http://msdn.microsoft.com/en-us/library/ms190209.aspx [ ^ ]
希望对您有所帮助:)
You need to attach it to database server. Try this:
http://msdn.microsoft.com/en-us/library/ms190209.aspx[^]
hope it helps :)
尝试一下:
将mdf和日志文件放在C:\ Program Files \ Microsoft SQL Server \ MSSQL.1 \ MSSQL \ Data \
右键单击数据库"->附加"->添加"->选择您的mdf文件路径"->单击确定".
它可能会对您有所帮助.
Try this:
Place the mdf and log files in C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\
Right click on Database->Attach->Add->select your mdf file path->click on "ok".
It may help you.
启动SQL Server Management Studio
右键单击数据库,然后选择ATTACH
Start SQL Server Management Studio
Right click on Databases and choose ATTACH
这篇关于如何还原数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文