[求助]数据库连接问题
这次我用OleDb连接VFP,还下了个oledb for vfp8.0(我的vfp是6.0的),下面是代码大家帮忙看一下这段代码有没有错误
protected void Page_Load(object sender, EventArgs e)
{
OleDbConnection s = new OleDbConnection("provider=vfpoledb.1;DataSource=D: fp98/我的东西/asp.dbc;collating sequence=general");
s.Open();
OleDbCommand cmd = new OleDbCommand("select * from asp", s);
cmd.Connection.Open();
OleDbDataReader a = cmd.ExecuteReader();
this.CheckBoxList1.DataTextField = "qiu";
this.CheckBoxList1.DataValueField = "id";
this.CheckBoxList1.DataSource = a;
this.CheckBoxList1.DataBind();
a.Close();
s.Close(); }
一运行就出一个"用户代码未处理OleDbException " 的提示框说Feature is not available.显示出错的位置是s.Open();
这是什么原因?如何解决?请指教