- C# code
<connectionStrings> <add name="AttendManager.Properties.Settings.ConnectionString" connectionString="Dsn=AttendManager;dbq=\DB\db.mdb;driverid=25;fil=MS Access;maxbuffersize=2048;pagetimeout=5;uid=admin" providerName="System.Data.Odbc" /> </connectionStrings>
- C# code
private void LoginFrm_Load(object sender, EventArgs e) { //this.用户TableAdapter.Fill(this.dataSet1.用户); string m_connection = new OdbcConnection("Dsn=AttendManager"); m_connection.Open(); GetUsers(); }
报错:ERROR [IM002] [Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序
小弟刚用ODBC数据源,请大侠帮忙看看这是什么错误?
------解决方案--------------------
懂了就好,呵呵。