数据库是只读的 [英] Database is Readonly

查看:186
本文介绍了数据库是只读的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过创建安装项目并安装应用程序和运行程序,数据库应用程序无法在应用程序中写入或编辑mdf数据库,并显示此错误消息
数据库是只读的"

By creating setup project and install application and running program the database application cannot write or edit mdf database in application and appear this error message
"Database is Read only"
How solve this problem?

推荐答案

请参考以下链接.

http://stackoverflow. com/questions/5713416/无法更新mdf数据库,因为该数据库是只读Windows应用程序
〜Amol
Refer following link.

http://stackoverflow.com/questions/5713416/failed-to-update-mdf-database-because-the-database-is-read-only-windows-applic
~Amol


嗨朋友

这个问题是针对win Vista和7.
1不要将数据库文件放在其他目录中,而只能将它们放在项目目录中
2-右键单击设置"部分中的应用程序文件夹",然后
选择属性.将默认位置更改为
[AppDataFolder] [制造商] \ [产品名称]
hi friend

this problem is for win vista and 7.
1-dont put database files in other Directory only put them in your project directory
2-Right click on Application Folder in the Setup section and
select properties .change the Default Location to
[AppDataFolder][Manufacturer]\[ProductName]


这篇关于数据库是只读的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆