sai*_*ful 8 c# odbc connection-string
我用C#编写了一个程序来使用OdbcConnection提取一些数据:
using System.Data.Odbc;
......
OdbcConnection OdbcConn =
new OdbcConnection(Properties.Settings.Default.ConnectionString);
OdbcCommand cmd = new OdbcCommand();
//open connection
if (OdbcConn.State != ConnectionState.Open)
{
OdbcConn.Open();
}
Run Code Online (Sandbox Code Playgroud)
在我的设置文件中,我有这个ConnectionString:
Dsn=****;uid=userID;pwd=password
但是我无法建立连接.我安装了IBM公司的iseries访问驱动程序,但如果我尝试MS访问,那么我就可以连接了.有什么建议?
| 归档时间: |
|
| 查看次数: |
35588 次 |
| 最近记录: |