An error occurred while attempting to initialize the Borland Database Engine(error $2109)

ngyxh 2003-03-19 03:16:08

我编了一个查询程序,数据文件是*.dbf的,用SQL写的查询。可是在没有Delphi的机子上一运行就出现:
An error occurred while attempting to initialize the Borland Database Engine(error $2109)?
这是怎么回事?怎么才能解决啊。
...全文
4980 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
Wally_wu 2003-03-19
  • 打赏
  • 举报
回复
要解决你的异常问题,可以升级BDE的Patch。
如果你要使用ADO控件:
使用ADOQuery必须要有ConnectionString,可以有两种方法设定这个ConnectionString
1. 添加一个ADOConnection控件, 点击在ADOConnection的ConnectionString属性,按照提示来设定ConnectionString, 最后在ADOQuery的Connection属性:=ADOConnection,大部分使用ADO 控件的应该程序都使用这种方法
2. 直接设定ADOQuery的ConnectionString属性。
DelphiStudy 2003-03-19
  • 打赏
  • 举报
回复
使用BDE
ngyxh 2003-03-19
  • 打赏
  • 举报
回复
我把Query改成ADOQuery了,可是又出现了如下错误:
Missing Connection or ConnectionString.
怎么解决它?
ngyxh 2003-03-19
  • 打赏
  • 举报
回复
我把Query改成了Query了,可是又出现了如下错误:
Missing Connection or ConnectionString.
怎么解决它?
ngyxh 2003-03-19
  • 打赏
  • 举报
回复
up
Rijie 2003-03-19
  • 打赏
  • 举报
回复
用ADO!

方便好用!
ngyxh 2003-03-19
  • 打赏
  • 举报
回复
谢谢 thinkcat(思想猫)
用哪种方法好呢。

建立动态BDE的代码多大呢?
thinkcat 2003-03-19
  • 打赏
  • 举报
回复
delphi进行数据连接可以有多种方式,如BDE或ADO

使用BDE:
在其他机器上安装的时候你需要将BDE打包到你制作的安装文件中,使用DELPHI自带的INSTALLSHIELD即可帮你完成
另外一种方法是你在程序中通过代码动态建立BDE(如果需要,我可以给你代码)

使用ADO:
在程序中使用ADO连接数据库,使用TADOConnection组件配置它的属性连接数据库,数据查询组件也使用ADOTable或ADOQuery
thinkcat 2003-03-19
  • 打赏
  • 举报
回复
使用BDE:
你用的时什么数据库,要是ORACLE的话需要自己添加键值
使用ADO:
把你用到的数据控件都换成ADO的控件即可

ngyxh 2003-03-19
  • 打赏
  • 举报
回复
能不能说得详细一些呢。怎么用请该用ADO啊?
bluemeteor 2003-03-19
  • 打赏
  • 举报
回复
你用BDE连接数据库了

但是程序分发的时候没有分发BDE,请该用ADO
ngyxh 2003-03-19
  • 打赏
  • 举报
回复
怎么才能把需要将BDE大包到安装程序中去呢?
thinkcat 2003-03-19
  • 打赏
  • 举报
回复
缺少BDE连接,需要将BDE大包到安装程序中去
Version 1.7 ----------- - ADD: Delphi/CBuilder 10.2 Tokyo now supported. - ADD: Delphi/CBuilder 10.1 Berlin now supported. - ADD: Delphi/CBuilder 10 Seattle now supported. - ADD: Delphi/CBuilder XE8 now supported. - ADD: Delphi/CBuilder XE7 now supported. - ADD: Delphi/CBuilder XE6 now supported. - ADD: Delphi/CBuilder XE5 now supported. - ADD: Delphi/CBuilder XE4 now supported. - ADD: Delphi/CBuilder XE3 now supported. - ADD: Delphi/CBuilder XE2 now supported. - ADD: Delphi/CBuilder XE now supported. - ADD: Delphi/CBuilder 2010 now supported. - ADD: Delphi/CBuilder 2009 now supported. - ADD: New demo project FlexCADImport. - FIX: The height of the TFlexRegularPolygon object incorrectly changes with its rotation. - FIX: Added division by zero protect in method TFlexControl.MovePathSegment. - FIX: The background beyond docuemnt wasn't filled when TFlexPanel.DocClipping=True. - FIX: In "Windows ClearType" font rendering mode (OS Windows mode) the "garbage" pixels can appear from the right and from the bottom sides of the painted rectangle of the TFlexText object. - FIX: The result rectangle incorrectly calculated in the TFlexText.GetRefreshRect method. - FIX: Added FPaintCache.rcPaint cleanup in the TFlexPanel.WMPaint method. Now it is possible to define is the drawing take place via WMPaint or via the PaintTo direct call (if rcPaint contain non-empty rectangle then WMPaint in progress). - FIX: The TFlexPanel.FPaintCache field moved in the protected class section. Added rcPaint field in FPaintCache that represents drawing rectangle. - ADD: In the text prcise mode (TFlexText.Precise=True) takes into account the rotation angle (TFlexText.Angle). - FIX: Removed FG_NEWTEXTROTATE directive (the TFlexText Precise mode should be used instead). - FIX: The TFlexRegularPolygon object clones incorrectly drawed in case when TFlexRegularPolygon have alternative brush (gradient, texture). - ADD: Add TFlexPanel.InvalidateControl virtual method which calls from TFle

5,402

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧