日期:2014-05-19  浏览次数:20835 次

C#新手,各位大哥帮忙
C#怎么连接ACCESS
具体步骤是怎样的
谢谢

------解决方案--------------------
string strConnection= "Provider=Microsoft.Jet.OleDb.4.0; ";
strConnection+=@ "Data Source=C:\BegASPNET\Northwind.mdb ";

OleDbConnection objConnection=new OleDbConnection(strConnection);

......

objConnection.Open();
objConnection.Close();

------解决方案--------------------
www.connecctionstring.com
------解决方案--------------------
http://www.connectionstrings.com/
------解决方案--------------------
string strConnection= "Provider=Microsoft.Jet.OleDb.4.0; ";
strConnection+=@ "Data Source=C:\BegASPNET\Northwind.mdb ";

OleDbConnection objConnection=new OleDbConnection(strConnection);

......

objConnection.Open();
objConnection.Close();

正确


------解决方案--------------------
C# ACCESS

------解决方案--------------------
string strConnection= "Provider=Microsoft.Jet.OleDb.4.0; ";
strConnection+=@ "Data Source=C:\BegASPNET\Northwind.mdb ";

OleDbConnection objConnection=new OleDbConnection(strConnection);

......

objConnection.Open();
objConnection.Close();

------解决方案--------------------
没有问题的
------解决方案--------------------
这是你环境的问题,和代码没有关系
------解决方案--------------------
你是.net 2.0直接扔个access connect控件上去
------解决方案--------------------
是环境的问题.
------解决方案--------------------
2.0不熟,记得有个控件,设置很简单