如何以及在何处将数据库驱动程序安装到 IDE 中?

发布于 2024-10-27 01:12:21 字数 1836 浏览 4 评论 0原文

我想安装 Firebird 数据库驱动程序,并使其在 Delphi XE IDE 中可用。我希望数据库驱动程序能够与其他提供的数据库驱动程序(例如 Interbase、SQL - 来自 IDE 中的数据资源管理器)在相同的基础上使用。我已经找到了合适的驱动程序。

该驱动程序由一个Delphi项目组成,该项目编译为DLL;以及对两个 .ini 配置文件(dbxconnections.ini 和 dbxdrivers.ini)的修改。我假设 DLL 是实际的驱动程序,并且我已经毫无问题地编译了该项目。

我已经走到这一步了,这就是我意识到我不知道安装新数据库驱动程序涉及什么的地方;将新的数据库驱动程序安装到 IDE 中涉及什么;也不是安装元素需要驻留的地方。

所以我的问题是: 将 dbExpress 数据库驱动程序安装到 Borland XE Delphi Professional IDE 中需要执行哪些步骤?

我不知道的一些具体问题包括 -

  1. 驱动程序是否需要在所有 Firebase、Delphi 和 Windows 中注册?
  2. 我需要采用特定的注册程序来完成注册吗?
  3. 为了实现我的目标,我是否缺少任何要素?
  4. 安装的组件应该位于哪里?

所有四家供应商:Embarcadero、Borland、UniOpen、和 Firebird 提供了文档(其中大部分都非常全面),但我无法从它们中提取出我需要做什么以及在哪里做。

我已经搜索了多个关于 SO 的问题,但所有这些问题似乎都是从 OP 知道驱动程序安装所涉及的内容开始的。

所有产品(驱动程序项目除外)都会在多个位置生成多个文件,并且不清楚哪些组件属于哪里。例如,我有两个配置文件的多个版本,位于:

  1. C:\Users\User\AppData...
  2. C:\Users\Public\Public Documents...
  3. C:\Program Files\Vendor...
  4. ....

此外,这些产品将文件安装到:

  1. 注册表(多个键);
  2. C:\程序文件......;
  3. C:\程序文件 (x86)...;
  4. C:\Windows\系统......;
  5. C:\Windows\System 32...
  6. 可能还有更多。

环境:

  • 机器:Lenovo Thinkpad W510
  • 操作系统:Windows 7 Ultimate
  • Delphi:Embarcadero® RAD Studio XE 版本 15.0.3953.35171
  • 数据库:W1-V2.5.0.26074 Firebird 2.5
  • 数据库驱动程序:UniOpen Native DBX 驱动程序

还安装了:

  • Embarcado Borland® Developer Studio 2006 Enterprise Version 10.0.2288.42451 Update 2 (XP Version)
  • Borland Delphi Version 7 (XP Version)

总结:

将 dbExpress 数据库驱动程序安装到 Borland XE Delphi Professional 中需要执行哪些步骤和位置IDE?

I want to install a Firebird database driver, and to have it available within the Delphi XE IDE. I want the database driver to be usable on the same basis as other, supplied database drivers (eg Interbase, SQL - from within the Data Explorer in the IDE). I have obtained an appropriate driver.

The driver consists of a Delphi project, which compiles to a DLL; and modifications to two .ini configuration files (dbxconnections.ini and dbxdrivers.ini). I assume that the DLL is the actual driver, and I have compiled the project without problem.

I have got this far, and this is where I realised that I do not know what is involved in installing a new database driver; what is involved in installing a new database driver into an IDE; nor where the elements of the installation need to reside.

So my question is:
What steps are needed to install a dbExpress database driver into the Borland XE Delphi Professional IDE?

Some of the specific points I don't know about include -

  1. Does the driver need to be registered with all of Firebase, Delphi and Windows?
  2. Do I need to employ a specific registration procedure to accomplish registration?
  3. Are there any elements I am missing to accomplish my aim?
  4. Where should the installed components be located?

All four vendors, Embarcadero, Borland, UniOpen, and Firebird provide documentation (most of which is very comprehensive) but I have been unable to extract from them what I need to do and where to do it.

I have searched multiple questions on SO, but all of seem to start from the basis that the OP knows what is involved in driver installation.

All the products (except the driver project) generate multiple files in multiple locations, and it is not clear what components belong where. For example, I have multiple versions of the two configuration files residing in:

  1. C:\Users\User\AppData....
  2. C:\Users\Public\Public Documents...
  3. C:\Program Files\Vendor....
  4. ....

In addition these products install files into:

  1. the registry (multiple keys);
  2. C:\Program Files....;
  3. C:\Program Files (x86)....;
  4. C:\Windows\System....;
  5. C:\Windows\System 32.....
  6. and probably more.

Environment:

  • Machine: Lenovo Thinkpad W510
  • OS: Windows 7 Ultimate
  • Delphi: Embarcadero® RAD Studio XE Version 15.0.3953.35171
  • Database: W1-V2.5.0.26074 Firebird 2.5
  • Database Driver: UniOpen Native DBX Driver

Also Installed:

  • Embarcado Borland® Developer Studio 2006 Enterprise Version 10.0.2288.42451 Update 2 (XP Version)
  • Borland Delphi Version 7 (XP Version)

In summary:

What steps and locations are needed to install a dbExpress database driver into the Borland XE Delphi Professional IDE?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一梦等七年七年为一梦 2024-11-03 01:12:21

你错过了一个文件。 :)

据我所知,DataExplorer 使用 dbxdrivers.ini。我安装的 XE 有该特定文件的单个副本,位于 (Win7 64) C:\Users\Public\Documents\RAD Studio\8.0 中。 DataExplorer 中列出的连接类型来自该文件开头的已安装驱动程序列表,每个驱动程序都有一个或多个位于该列表后面的配置部分。

配置部分中列出的驱动程序文件必须存在于可通过 加载库。链接中的文档解释了 API 函数搜索 DLL 的方式;但基本上,IDE 必须在 PATH 中的某个位置找到它。

特定驱动程序的供应商或作者应该能够提供 dbxdrivers.ini 文件中需要的信息。 (我个人对 UniOpen 并不熟悉,并且该特定计算机上没有 FireBird。)IDE 仅在启动期间读取该文件,因此您需要在添加后(重新)启动 IDE。

这篇 Embarcadero Delphi 数据库->DBExpress 论坛上的帖子可能会帮助为您的 Firebird 数据库定义别名,并描述通过 TSQLConnection 组件进行连接。 (查找 Ralph Horbury-Smith 的帖子。)如果您没有开发者网络 ID,则需要在 Embarcadero 网站上注册;由于某种原因,我提供的链接使用 HTTPS。您还可以通过 NNTP 访问他们的论坛;我没有使用新闻阅读器,所以我不确定地址是什么。 Embarcadero 的页面上有一个连接信息的链接。

Delphi XE 文档 Wiki 页面上还提供了一些可能有所帮助的信息

编辑:在 DBExpress 论坛上找到了一个可能感兴趣的链接你。它包含另一个 FB DBExpress 驱动程序 的链接以及该 dbxdrivers.ini 文件的具体信息司机。这是菲利普·弗洛雷斯 (Phillip Flores) 的帖子(大约是页面下方的第三个帖子)。

You missed a file. :)

DataExplorer, from the best I can tell, uses dbxdrivers.ini. My installation of XE has a single copy of that particular file, located (Win7 64) in C:\Users\Public\Documents\RAD Studio\8.0. The connection types listed in DataExplorer come from the list of installed drivers at the beginning of that file, and each driver has one or more configuration sections which follow that list.

The driver files listed in the configuration section have to exist in a location findable (like any other Windows DLL) by LoadLibrary. The documentation in the link explains the way the API function searches for DLLs; basically though, the IDE has to find it somewhere on the PATH.

The vendor or author of your particular driver should be able to provide the info that needs to go in the dbxdrivers.ini file. (I'm not familiar with UniOpen personally, and don't have FireBird on this particular machine.) The IDE only reads that file during startup, so you'll need to (re)start the IDE after making the additions.

This post at the Embarcadero Delphi Database->DBExpress forum may help with defining aliases for your Firebird databases, and describes connecting via the TSQLConnection component. (Look for a post by Ralph Horbury-Smith.) If you don't have a Developer's Network ID, you'll need to register with the Embarcadero site; the link I provided uses HTTPS for some reason. You can also get to their forums via NNTP; I'm not using a newsreader, so I'm not sure what the address would be. There's a link to connection info on this page at Embarcadero.

There's also some information available on the Delphi XE documentation Wiki pages that might help as well.

EDIT: Found one more link at the DBExpress forums that might interest you. It has a link for another FB DBExpress driver and specific information for the dbxdrivers.ini file for that driver. It's the post by Phillip Flores (about the 3rd one down on the page).

溺ぐ爱和你が 2024-11-03 01:12:21

我接受@Ken的回答。他的回复提供了各种资源的链接。我正在总结我从参考文献中获得的具体观点的答案。

  1. 无需修改 dbxconnections.ini - IDE 会为我做这件事。
  2. 我需要适当修改 dbxdrivers.ini 并将其放置在 IDE 目录中。
  3. 实际的驱动程序需要位于路径上的某个位置 - 通常是 System32。
  4. 无需在 Windows 中注册驱动程序。
  5. 除了上面列出的项目之外,注册此类驱动程序不需要任何特殊过程。
  6. 这里的列表看起来很完整。

编辑:

我在这个摘要中的结论还为时过早,我已经问了更多问题尝试获取更多信息。上面列表中的删除线标记了不正确的元素。

I am accepting @Ken's answer. His response provided links to various resources. I am summarising the answers to the specific points I had that I have obtained from the references.

  1. There is no need to amend dbxconnections.ini - the IDE will do that for me.
  2. I need to amend dbxdrivers.ini appropriately and place it in the IDE directories.
  3. The actual driver needs to be somewhere on the path - typically System32.
  4. There is no need to register the driver with Windows.
  5. Apart from the items listed above, there is no special procedure needed to register such drivers.
  6. The list here appears complete.

EDIT:

My conclusions in this summary were premature and I have asked a further question to try and obtain further information. The strikeout in the list above marks the incorrect elements.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文