database attached is read only

后端 未结 12 1156
借酒劲吻你
借酒劲吻你 2020-12-08 19:03

I used the following the script to attach a database. But the database created is read only.
What modifications should I make in the script to make it read-write. Pl

12条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-08 19:54

    Open database properties --> options and set Database read-only to False.

    • Make sure you logged into the SQL Management Studio using Windows Authentication.
    • Make sure your user has write access to the directory of the mdf and log files.

    Did the trick for me...

提交回复
热议问题