SQL Server2008 After attaching a database is displayed as read-only workaround

Source: Internet
Author: User

Wordy words will not say more, straight into the subject bar!

Programme one:

In this case, the SA account is typically used to log on, as long as Windows authentication is changed, and the database is attached.

Scenario Two:

Use the sa login SQL Server2008 to attach the database, append the database to read-only, then point to the database--"Properties" and "Options"--"status", the "database is read-only" is true, change to false, if it can be modified, So congratulations, your character is good! I made the same mistake when I modified it:

In this case, locate your data file and log file, right-click on "Properties"--"security", add a "Network Service" account, and give the account full control of the permissions. Use sa login again, attach the database, hehe ... You will find that life is so beautiful!!!

SQL Server2008 After attaching a database is displayed as read-only workaround

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.