C#连接Access数据库,打开时出现:未处理 System.Data.OleDb.OleDbException,Message=文件名无效。
privatevoidbutton1_Click(objectsender,EventArgse){StringconnStr="Provider=Microsoft.A...
private void button1_Click(object sender, EventArgs e)
{
String connStr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=E:\test.accdb;Persist Security Info=False";
OleDbConnection conn1 = new OleDbConnection(connStr);
conn1.Open();//运行到此处提示错误
}
麻烦各位高手指点啊,急急急急..... 展开
{
String connStr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=E:\test.accdb;Persist Security Info=False";
OleDbConnection conn1 = new OleDbConnection(connStr);
conn1.Open();//运行到此处提示错误
}
麻烦各位高手指点啊,急急急急..... 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询