SQL Server 2005 Read-only the wrong solution when attaching a database _mssql

Source: Internet
Author: User

SQL Server 2005 has a read-only error attaching the database file, when attached, the system prompts the MDF file as read-only, but opens the file properties, this property is not read-only. How to solve it? This article we have introduced this solution, next let us come to understand together.

The two solutions are as follows:

1, re-open the database software, in the Login authentication box where choose: Windows authentication to log in. Then attach the database, then there is no read-only attached.

2, in the *.mdf file properties, find the "security" page, and then all of the "group or user name" all the rights of all tick, press OK, just fine.

Then execute: sp_dboption ' database name ', ' Read Only ', ' FALSE ', refresh to see the database name no longer with the read-only, or delete the previously attached database, again in SQL Server appended to the database can also 。 Note: There is no "security" option page in the Friends Properties dialog box, you can open "My Computer"-"Tools"-"Folder Options"-"view", remove the "Use of simple File sharing (recommended)", on it.

About the SQL Server 2005 database read-only The wrong solution is introduced here, I hope this introduction can be harvested for you!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.