Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经在 C# windows 应用程序中的 Visual Studio 2010 中进行了设置,它非常完美。安装没有任何问题,但是执行操作时出现错误“数据库是只读的”。连接和连接字符串没有任何问题。请给我解决方案。
确保数据库文件(例如 MSSQL 服务器中的 mdf 文件)是可写的。您还可以尝试以下查询以获取有关您的数据库的信息。
use master select name, status from sysdatabases