
However, despite their importance, their reliability is much less studied or understood compared with that of local storage systems or cloud storage systems. Follow this simple steps and mark your database “read-write”.Large-scale parallel file systems (PFSs) play an essential role in high-performance computing (HPC). The another way to solve “ Msg 3906, Level 16, State 1, Line 10 Failed to update database because the database is read-only” is to use SQL Server Management Studio (SSMS).

That’s it! All 2 rows were affected successfully! Using SQL Server Management Studio To be sure that the issue is solved insert any value into the table. Now database “MyData” marked as “read-write”.

We can simply do it using next T-SQL Commands: USE master GO ALTER DATABASE MyData SET READ_WRITE WITH NO_WAIT Failed to update database because the database is read-only – Solution We successfully reproduced the error, now let’s solve it using T-SQL CommandsĪll we need to do is to mark database “MyData” as read-write. GO INSERT INTO tbl_Table VALUES ( 1), ( 2)Īfter you have executed “INSERT INTO” operation, you will receive the following error message: Msg 3906, Level 16, State 1, Line 10 Failed to update database "MyData" because the database is read-only. ( NAME = N'MyData_log', FILENAME = N'D:\Backups\MyData_log.ldf', SIZE = 2048KB, FILEGROWTH = 10%) ( NAME = N'MyData', FILENAME = N'D:\Backups\MyData.mdf', SIZE = 5120KB, FILEGROWTH = 1024KB ) Failed to update database because the database is read-only – ReproducingĬREATE DATABASE MyData CONTAINMENT = NONE ON PRIMARY But still, we are going to show you, how you can solve this issue using simple T-SQL Commands or SQL Server Management Studio. All you need is simply mark the database as read-write. Of course, experience DBA can say that your database is read-only and you don’t have any way to write into it. Below the complete text of this error: Msg 3906, Level 16, State 1, Line 10 Failed to update database "MyData" because the database is read-only.

Here we are going to discuss how to solve the error message “ Failed to update database because the database is read-only” that you can face with working with SQL Server.
