无法找到可安装的ISAM异常被连接引发... [英] Could not find installable ISAM Exception is thrown by the connection...
本文介绍了无法找到可安装的ISAM异常被连接引发...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
string query = "select LoginID,Password from Login where LoginID ='" + txtUserName.Text + "' and Password = '" + txtPwd.Text + "' ";
string connectstr = @"Provider=Microsoft.ACE.OLEDB.12.0;DataSource=D:\BSSLD_Database.accdb;Jet OLEDB:Database:Password=bslld123!";
connection = new OleDbConnection(connectstr);
//connection.ConnectionString = connectstr;
connection.Open();
adpater = new OleDbDataAdapter(query, connection);
adpater.Fill(ds, "Data");
for (int i = 0; i <= ds.Tables[0].Rows.Count; i++)
{
pass = ds.Tables["Data"].Rows[i]["LoginID"].ToString();
user = ds.Tables["Data"].Rows[i]["password"].ToString();
//parent = new MDIParent1();
}
if ((pass == txtUserName.Text) && (user == txtPwd.Text))
{
MessageBox.Show("You are Login");
}
}
推荐答案
请查看以下提到的链接以获取更多信息。 :)
找不到可安装的ISAM
错误
Microsoft ACE OLEDB提供程序抛出无法找到可安装的ISAM异常
Please check the below mentioned links for more info. :)
Could not find installable ISAM
Bug
Microsoft ACE OLEDB provider throws could not find installable ISAM exception
这篇关于无法找到可安装的ISAM异常被连接引发...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文