Additional database-mysql tutorial

Source: Internet
Author: User
Original article: blog. csdn. netmascfarticledetails38168029 an error occurred while appending the database. for details, click the hyperlink in the message column. Click "OK" to open the hyperlink in the message column. an exception occurs when the error box is displayed to execute the Transact-SQL statement or batch processing. Unable to upgrade to count

Original article: An error occurred when the http://blog.csdn.net/mascf/article/details/38168029 attached the database when an error occurred while appending the database. for details, click the hyperlink in the message column. Click "OK" to open the hyperlink in the message column. an exception occurs when the error box is displayed to execute the Transact-SQL statement or batch processing. Unable to upgrade to count

Original article: http://blog.csdn.net/mascf/article/details/38168029

When attaching a database, the following error occurs: "An error occurred while appending a database. for details, click the hyperlink in the" message "column ."

Click "OK" to open the hyperlink in the message column. an exception occurs when the error box "execute a Transact-SQL statement or batch processing" is displayed. You cannot upgrade the database to 'charge _ sys 'because it is read-only or only has read-only files. Set the database or file to writable, and then run the recovery operation again ."

Cause of error: This is an NTFS permission problem (disk partition format). The NTFS format has many more options for permission setting, which causes many problems. For example, the permission is not assigned this time and the attaching fails.

Solution: assign the "full control" permission to the folder where the file is located to users to solve the problem.

Select the folder of the file to be appended and right-click "properties"> "security"> "Users" and select "full control"> "application"> "OK" from Users.

Then open the database and attach

Click "Add"

Select the MDF file-"OK"

Click OK

Haha ~ Attached successfully

Of course, in addition to this method, there are two other ways to solve this problem (I personally tested)

First, copy the file to be appended to the default Data directory of SQL Server, and then attach the file.

The second method is to select "Windows Authentication" during login authentication, or you can append the Authentication successfully.

In addition, the "security" tab may not exist in the properties of the XP user folder. Solution: open "my computer-tools-Folder Options"

Remove the simple file sharing (recommended) check box on the "View" tab.

If the database has been attached successfully, the next step is to knock on the data center. Haha, coming soon ~

If you have any questions or suggestions, please leave a message ~

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.