当前位置: 首页 > 图文教程 > 网络编程 > ASP.NET > firebird 连接嵌入式版本

ASP.NET
FreeTextBox(版本3.1.6)在ASP.Net 2.0中使用方法
.NET 常用功能和代码小结
在 .NET Framework 2.0 中未处理的异常导致基于 ASP.NET 的应用程序意外退出
asp.net IList查询数据后格式化数据再绑定控件
asp.net sql存储过程
asp.net 简单实现禁用或启用页面中的某一类型的控件
asp.net(c#)获取内容第一张图片地址的函数
The remote procedure call failed and did not execute的解决办法
ASP.NET 在线文件管理
asp.net 读取并修改config文件实现代码
ASP.NET Cookie 操作实现
asp.net Silverlight中的模式窗体
Silverlight中动态获取Web Service地址
asp.net Silverlight应用程序中获取载体aspx页面参数
asp.net 水晶报表隔行换色实现方法
asp.net 获取Gridview隐藏列的值
手动把asp.net的类生成dll文件的方法
asp.net 使用ObjectDataSource控件在ASP.NET中实现Ajax真分页
动态指定任意类型的ObjectDataSource对象的查询参数
asp.net Md5的用法小结

ASP.NET 中的 firebird 连接嵌入式版本


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 54 ::
收藏到网摘: n/a

1. dotnet连接fb Embedded Server版本
firebird分为两种版本,一种为安装版一种为嵌入式版本(该版本只需要一个“fbembed.dll”文件支持即可,此文件一定要是嵌入式版本中的(1.5.2版的文件大小为1489KB),不能使用安装版的fbembed.dll文件)
使用方法:
首先把 fb Embedded Server 的 fbembed.dll 拷贝到应用程序目录下。并且要使用fb.net provider 1.6以上的版本 最后在连接字符串中把 ServerType属性设置为“1” 即可。其他的不变。
通过上述的设置就可以在应用程序中使用fb的本地版本了。
下面贴出连接字符串代码(仅供参考)
FbConnectionStringBuilder cs = new FbConnectionStringBuilder();
cs.DataSource = "localconnect";
cs.Database = @"F:\project files\testfiles\firebird\firebirddemo\bin\Debug\TASKS.GDB";
cs.ServerType = 1;//关键就是这里,一定把把这个属性设置为1才能连接嵌入式版本。
cs.UserID = "SYSDBA";
cs.Password = "masterkey";
cs.Dialect = 3;
2. 关于fb的一些网站
a) http://firebird.sourceforge.net
b) http://www.firebirdsql.org
c) http://www.ibphoenix.com/
d) http://wiki.sunyear.com.tw/index.php?title=FirebirdSQL(一个繁体中文网站,还不错)

e) http://www.dotnetfirebird.org/