The table is located in a read-only database

But someone did this. You can check: Execute query : Cannot modify the design of table 'table_name'. It is in a read-only database . I tried the same way. But it didnt work.