火鸟数据库 c# 操作

 string str = @"User=SYSDBA;Password=masterkey;Database=" +  @"192.168.6.5:c:\ACA1300.FDB;DataSource=192.168.6.5; Port=3050;Dialect=3; Charset=NONE;Role=;Connection lifetime=15;Pooling=true; MinPoolSize=0;MaxPoolSize=50;Packet Size=8192;ServerType=0;";



  using (FbConnection cn = new FbConnection(str))
            {
                cn.Open();
                FbDataAdapter fba = new FbDataAdapter(@"SELECT 
RDB$RELATION_NAME AS TABLE_NAME
FROM RDB$RELATIONS
", cn);
                DataTable dt = new DataTable();
                fba.Fill(dt);
                // dataGridView1.DataSource=dt;
                listBox1.DataSource = dt;
                listBox1.DisplayMember = "TABLE_NAME";
                listBox1.ValueMember = "TABLE_NAME";


            }

  FirebirdSql.Data.FirebirdClient-4.9.0.0.msi// c# 调用 
  Firebird-2.5.5.26952_0_Win32.exe// 做远程服务器

  

posted @ 2016-01-18 08:25  刀小爱  阅读(1289)  评论(0编辑  收藏  举报