use ODBC Data Provider to connect to Sybase through the Sybase ODBC Driverhttp://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/MSDN-FILES/027/001/668/msdncompositedoc.xml&frame=trueand try something like1. Download the following dll and reference in app:
Microsoft.Data.Odbc.dll2. Add the following namespace: using Microsoft.Data.Odbc;If anyone's interested my code ended up looking like this
for binding to a grid (this is done in ASP.NET):string connectstring = "Driver=
{Sybase System
11};srvr=myserver;UID=myuserid;PWD=mypassword;Database=mydb
;";
OdbcDataAdapter da = new OdbcDataAdapter(thisSqlString, connectstring);
DataSet ds = new DataSet();
da.Fill(ds);
DataGrid1.DataSource = ds;
 DataGrid1.DataBind();see
http://www.dotnet247.com/247reference/msgs/25/128879.aspx

解决方案 »

  1.   

    Thank u,saucer(思归),Let me try.cdma2002 (偶数地方),你可以结贴了:)
      

  2.   

    应该可以不用ODBC吧,我以前用VB连时就用的OLEDB连接字符串.cnnc.ConnectionString= “PROVIDER=MSDASQL;DRIVER={Sybase System 11};SRVR=serveru; ” + “DSN=;DB=dataa;UID=sa;PWD=dqwe;"+ “PERSIST SECURITY INFO=False” 不采用集成安全机制
      

  3.   

    saucer(思归, MS .NET MVP)   的