简体   繁体   English

SQL Server 2005中的恢复模式数据库

[英]Recovery Mode Database in SQL Server 2005

Today I was trying to attach the .MDF, .NDF, .LDF files for a SQL Server 2005 database which I have received from my client. 今天,我试图为从客户端收到的SQL Server 2005数据库附加.MDF, .NDF, .LDF文件。 After attachment the database status is showing (Read-Only) (Eg.database name (Read-Only). 附加后,数据库状态显示为(只读)(例如数据库名称(只读))。

How do I make this to normal mode for updating the data? 如何将其设置为正常模式以更新数据? Is there any query available to resolve this problem? 是否有任何查询可解决此问题? Your help will be highly helpful. 您的帮助将非常有帮助。

The following SQL Statement should make you able to do updates: 以下SQL语句应使您能够进行更新:

ALTER DATABASE <database name> SET READ_WRITE

If that doesn't work then I suspect there are some problems with permissions as the files come from a different server. 如果那不起作用,那么我怀疑权限有问题,因为文件来自其他服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM