数据连接:
_cn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source="+System.Web.HttpContext.Current.Server.MapPath("db1.mdb"));
报错:
Could not find installable ISAM
请问怎么解决?
_cn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source="+System.Web.HttpContext.Current.Server.MapPath("db1.mdb"));
报错:
Could not find installable ISAM
请问怎么解决?
http://www.connectionstrings.com/改为如下试试
string constring=@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+System.Web.HttpContext.Current.Server.MapPath("db1.mdb")+";User Id=admin;Password=;";
string constring=@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+System.Web.HttpContext.Current.Server.MapPath("db1.mdb")+";User Id=admin;Password=;";_cn = new OleDbConnection(constring); 注意是Data Source不是DataSource