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 ~