标签:
using FirebirdSql.Data.FirebirdClient; FbConnectionStringBuilder connBuilder = new FbConnectionStringBuilder(); connBuilder.UserID = “SYSDBA”;//设置一个值,嵌入式版本并不验证用户名。 connBuilder.ServerType = FbServerType.Embedded;//设置数据库类型为 嵌入式; connBuilder.Database = dbFile;//数据库文件的目录; using (FbConnection fbConn = new FbConnection(connBuilder.ConnectionString)) { fbConn.Open(); Console.WriteLine("连接成功!"); fbConn.Close(); }
标签:
原文地址:http://www.cnblogs.com/shya/p/4413410.html