装sybase的驱动
用OdBC.net
  If using the Sybase System 11 ODBC Driver:    ConnectionString="Driver={SYBASE SYSTEM 11};Srvr=myServerName;Uid=myUsername;Pwd=myPassword;"

解决方案 »

  1.   

    我已经down了odbc.net安装
    在C#中引用了该dllusing System;
    using System.Drawing;
    using System.Collections;
    using System.ComponentModel;
    using System.Windows.Forms;
    using System.Data;
    using System.Data.Common;
    using Microsoft.Data.Odbc;namespace WindowsApplication1
    {
    public class Form1 : System.Windows.Forms.Form
    {
    ...
    //Private app variables
    private OdbcDataAdapter _da;
    private DataSet _ds;
             ...
    static void Main() 
    {
    Application.Run(new Form1());

    } private void button1_Click(object sender, System.EventArgs e)
    {
    _ds = new DataSet();
    _da = new OdbcDataAdapter();
                       }
    }
    按下button1时报错:未处理的“System.IO.FileNotFoundException”类型的异常出现在 system.windows.forms.dll 中
    删去_da=new odbcdataadapter()后不出错(odbcdataadapter是新增dll中的类)