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
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
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货