1.下载ODBC.NET (FrameWork 2.0以上默认未安装)
下载地址:http://www.microsoft.com/downloads/details.aspx?familyid=6ccd8427-1017-4f33-a062-d165078e32b1
2.创建项目,添加Microsoft.Data.ODBC.dll 引用
3.cs代码如下:


4.连接代码示例:
SqlServer:















OLEDB JET:














Oracle:















DSN:














1.下载ODBC.NET (FrameWork 2.0以上默认未安装)
下载地址:http://www.microsoft.com/downloads/details.aspx?familyid=6ccd8427-1017-4f33-a062-d165078e32b1
2.创建项目,添加Microsoft.Data.ODBC.dll 引用
3.cs代码如下:
4.连接代码示例:
SqlServer:
OLEDB JET:
Oracle:
DSN: