您的位置:首页 > 编程语言 > C#

C#连接Access报“无法启动应用程序。工作组信息文件丢失,或是已被其它用户以独占方式打开。”

2016-08-04 21:06 591 查看
//string connstr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=H:\\Pro\\edu.mdb;Persist Security Info=True;Password=1111;";

连接Access报“无法启动应用程序。工作组信息文件丢失,或是已被其它用户以独占方式打开。”

改成以下解决:

string connstr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=H:\\Pro\\edu.mdb;Jet OLEDB:Database Password=1111;";

补充:没有密码的数据连接

string connstr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=H:\\Pro\\edu.mdb;Persist Security Info=True;";
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐