Original address: https://blog.csdn.net/rt_ 1170406609/article/details/79001990
Error message: the database ‘XXXX’ cannot be upgraded because it is read-only or has read-only files. Make the database or file writable, and then rerun the recovery operation
1. Copy the file to be attached to the default data directory of SQL server, and the attachment will succeed( In this way, I can normally attach data. The following methods are not tried)
( C:\Program Files\Microsoft SQL Server\MSSQL10_ 50.MSSQLSERVER\MSSQL\DATA)
2. During login authentication, select “windows authentication” instead of “SQL server authentication”, even if your login account is sa;
3. If “SQL server authentication” must be used, please change the permissions of the login account so that it has full operation permissions for the files to be attached;
4. Change the login identity of the SQL Server service account from network service to local service;
Similar Posts:
- How to Solve SQL Server: database stuck in “restoring” state
- Trouble Connecting to sql server Login failed. “The login is from an untrusted domain and cannot be used with Windows authentication”
- If the FTP server is accessed by CMD or PowerShell, there is no following after reporting port command successful. Consider using PASV
- Error occurred when using java to connect mongodb: command failed with error 18 (authentication failed): “authentication failed.”
- Su command error Su: permission denied [How to Solve]
- The solution of WordPress timthumb unable to display thumbnail
- sqlplus / as sysdba ora-01031 insufficient privileges
- CentOS7 MYSQL Connect Error: [ERROR] InnoDB: The innodb_system data file ‘ibdata1’ must be writable
- [Solved] pymongo.errors.OperationFailure: Authentication failed.
- How to Solve Error: ORA-27101: shared memory realm does not exist