找不到可安装的 ISAM ?
我用C#连接数据库,可是却错了,提示"找不到可安装的 ISAM",数据库放在了App_Data目录下,请大家指点.
//////////////////////////////////////////////////////////////////////////////////
/////////////////////////////读取Access数据库/////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
OleDbConnection connection = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=¦DataDirectory ¦\\SysLog.mdb");
connection.Open();
OleDbCommand command = connection.CreateCommand();
command.CommandText = "SELECT * from LicenseInfo";
OleDbDataReader reader = command.ExecuteReader();
while (reader.Read())
{
Response.Write(reader["UserName"]);
Response.Write(reader["LicenseCount"]);
}
reader.Close();
connection.Close();