ASP.net 连接interbase数据库
找了好久,总于调通了asp.net 连接interbase.放上来与大家一起分享.....
string strConn = "database=127.0.0.1:D:\\新建文件夹\\home_db.ib;assembly=Borland.Data.Interbase,Version=2." +
"0.0.0,Culture=neutral,PublicKeyToken=91d62ebb5b0d1b1b;vendorclient=gds32.dll;pro" +
"vider=Interbase;username=sysdba;password=masterkey";//interbase数据库连接实符串
BdpConnection myConn = new BdpConnection(strConn) ;// 打开连接。
DataSet myDataSet=new DataSet ();
string strSelType="select * from board";
BdpDataAdapter myDbAdapterType =new BdpDataAdapter(strSelType,strConn);
myDbAdapterType.Fill (myDataSet,"board");
DataGrid1.DataSource =myDataSet.Tables ["board"] ;
DataGrid1.DataBind();
string strConn = "database=127.0.0.1:D:\\新建文件夹\\home_db.ib;assembly=Borland.Data.Interbase,Version=2." +
"0.0.0,Culture=neutral,PublicKeyToken=91d62ebb5b0d1b1b;vendorclient=gds32.dll;pro" +
"vider=Interbase;username=sysdba;password=masterkey";//interbase数据库连接实符串
BdpConnection myConn = new BdpConnection(strConn) ;// 打开连接。
DataSet myDataSet=new DataSet ();
string strSelType="select * from board";
BdpDataAdapter myDbAdapterType =new BdpDataAdapter(strSelType,strConn);
myDbAdapterType.Fill (myDataSet,"board");
DataGrid1.DataSource =myDataSet.Tables ["board"] ;
DataGrid1.DataBind();