Firebird Embedded

实现的关键:4个dll文件(fbembed.dll,ib_util.dll,icudt30.dll,icuuc30.dll)放入同一个文件夹中,如F:\firebird

using FirebirdSql.Data.FirebirdClient;

        public static string ConnectString(string fileName)
        {
            FbConnectionStringBuilder cs 
= new FbConnectionStringBuilder();
            cs.DataSource 
= "localhost";
            cs.Database 
= fileName;
            cs.ServerType 
= FbServerType.Embedded;
            cs.UserID 
= "sysdba";
            cs.Password 
= "masterkey";
            cs.Dialect 
= 3;
            cs.ClientLibrary 
= @"F:\firebird\fbembed.dll";
            
return cs.ToString();
        }

 

posted on 2011-06-08 16:13  Lemon_s  阅读(370)  评论(0)    收藏  举报

导航