public DBConn()
{
string DBPath = "Data Source=.;database=SCardDB;UID=sa;Password=;Persist Security Info=True; ";
string connStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data source= " + Server.MapPath(DBPath);
conn=new OleDbConnection(connStr);
conn.Open();
}
错误提示找不到可安装的ISAM。
哪的错啊。
------解决方案--------------------------------------------------------
string DBPath = "xxxx.mdb ";
string connStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data source= " + Server.MapPath(DBPath);
不是你写的那些
或者
string DBPath = "Data Source=.;database=SCardDB;UID=sa;Password=;Persist Security Info=True; ";
conn=new OleDbConnection(DBPath );