C#鏈接Access報「沒法啓動應用程序。工做組信息文件丟失,或是已被其它用戶以獨佔方式打開。」

//string connstr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=H:\\Pro\\edu.mdb;Persist Security Info=True;Password=1111;";ide

鏈接Access報「沒法啓動應用程序。工做組信息文件丟失,或是已被其它用戶以獨佔方式打開。」spa

改爲如下解決:string

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

 

補充:沒有密碼的數據鏈接程序

string connstr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=H:\\Pro\\edu.mdb;Persist Security Info=True;";密碼

相關文章
相關標籤/搜索