恢复SQL文件时出现问题 [英] Problem Occured to Restore SQL file

查看:84
本文介绍了恢复SQL文件时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个SQL数据库.不幸的是,我重新安装了操作系统,所以我已经从C复制了数据库:这些文件位于我要还原或复制以在SQL Server中使用的.mdf,.log文件中.怎么做.请有人帮忙解决这个问题.拜托.........


在Advance中致谢

I have a database in SQL. Unfortunately i am Reinstalled my OS, So i have copied my database from C: The files are in .mdf,.log files I want to Restore or Copied to use in SQL server. How to do it. Please somebody help for this Problem. Please.......


Thanks in Advance

推荐答案

转到 ProgramFiles 并找到SQL Server的安装文件夹.您将在其中找到具有自我描述性的文件夹.在其中一个文件夹中,您会找到名为"master"的表,等等.....将.mdf和.log文件粘贴到同一文件夹中.

现在,转到SQL Server Management Studio,然后选择添加数据库"浏览您的.mdf文件,您应该从此处进行检索.

问候,
爱德华
Go to ProgramFiles and find the installation folder of SQL Server. You will find folders there which is self-descriptive. Inside one of those folders, you will find tables named ''master'', etc..... Paste both .mdf and .log files into the same folder.

Now, go to SQL Server Management Studio and choose ''Add database'' browse your .mdf file and you should retrieve it from here.

Regards,
Eduard




在您的SQL管理工作室中,右键单击数据库,单击附加... ,将显示一个弹出窗口,并要求您添加数据库.

现在,单击添加... 按钮,然后选择要与SQL Server连接的数据库.

希望对您有帮助.

谢谢
-amit.
Hi,

In your SQL management studio Rightclick on Databases, Click on Attach... one popup will display and ask you to add your databases.

Now Click on Add... button and select your database to attach with SQL server.

hope this will help you.

thanks
-amit.


这篇关于恢复SQL文件时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆