带有嵌入式数据库的 PowerBuilder 应用程序?

发布于 2024-07-09 12:45:50 字数 65 浏览 6 评论 0原文

是否可以将 SQLite 等与 PowerBuilder 一起使用? 我需要一个嵌入式开源数据库(无需额外费用)。

Is it possible to use e.g. SQLite with PowerBuilder? I need an embedded open source database (no additional costs).

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

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

发布评论

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

评论(5

深海不蓝 2024-07-16 12:45:50

就像 Bernard 说的,你需要一个 ODBC 驱动程序,所以只要你愿意使用第三方(如果我正确理解 SQLite 的情况),那应该没问题。

也就是说,如果您有 PowerBuilder,您就拥有分发单用户 SQL Anywhere 运行时引擎的许可证。 如果免费是您的唯一标准,并且您仅进行本地连接,那么 SQL Anywhere 可能是一个值得评估的选项。 它不仅是一个极其可靠的数据库,而且还有更丰富的文档基础和将 PowerBuilder 连接到 SQL Anywhere 的经验,因此,如果您遇到问题,您更有可能获得帮助。

祝你好运。

Like Bernard said, you'll need an ODBC driver, so as long as you're willing to go third party (if I understand the SQLite situation correctly), that should be no problem.

That said, if you have PowerBuilder, you have license to distribute the single-user SQL Anywhere run time engine. If no-cost is your only criteria, and you're only connecting locally, SQL Anywhere may be an option to evaluate. Not only is it an incredibly solid database, but there's a much larger base of documentation and experience connecting PowerBuilder to SQL Anywhere, so if you run into problems, you're more likely to get some help.

Good luck.

橙幽之幻 2024-07-16 12:45:50

我不相信 PowerBuilder 包含对 SQLite 的本机支持的驱动程序。 但它肯定有 ODBC 驱动程序,因此即使它不是最有效的,它始终是一种选择。

I don't believe that PowerBuilder contains a driver for native support to SQLite. But it definitely has a driver for ODBC, so that is always an option even if it isn't the most efficient one.

陌上芳菲 2024-07-16 12:45:50

我曾经使用 SQL Anywhere,但最终放弃了它,原因是 Joe Landau 给出的原因 - 无法使用可分发运行时引擎更改架构。

我改用了 Firebird,它有一个嵌入式版本,看起来很可靠。 唯一的问题是我正在使用的 ODBC 驱动程序 (Gemini),它似乎是最好的可用驱动程序,但似乎已经停业了。 (我刚刚检查过 - 它似乎可以在其他网站上使用。)并且您必须将以下内容添加到您的 PBODB*.INI 文件中:

[Firebird]
PBSyntax='Firebird_SYNTAX'
PBNoCatalog='YES'

[Firebird_SYNTAX]
CreateTable='CREATE TABLE &TableName (::ColumnElement[::ColumnElement]...)'
ColumnElement='&ColumnName &DataType'
DropTable='DROP TABLE &TableName'
GetIdentity='Select gen_id(GEN_&TableName,0) from RDB$DATABASE'

我对此非常满意。 使用近2年,用户超过1000人,没有任何问题。 如果某些用户需要,您还可以轻松切换到 Firebird 服务器版本。

I used to use SQL Anywhere, but eventually ditched it for the reasons Joe Landau gave - can't change the schema using the distributable runtime engine.

I switched to Firebird, which has an embedded version, and that seems solid. The only issue is that the ODBC driver I'm using (Gemini), which seems to be the best one available, seems to have gone out of business. (I just checked - it seems to be available on other sites.) And you have to add the following to your PBODB*.INI file:

[Firebird]
PBSyntax='Firebird_SYNTAX'
PBNoCatalog='YES'

[Firebird_SYNTAX]
CreateTable='CREATE TABLE &TableName (::ColumnElement[::ColumnElement]...)'
ColumnElement='&ColumnName &DataType'
DropTable='DROP TABLE &TableName'
GetIdentity='Select gen_id(GEN_&TableName,0) from RDB$DATABASE'

I've been very happy with it. Using it for almost 2 years, with over 1,000 users, and no problems whatsoever. You can also easily switch to the Firebird server version if some users need that.

怪我入戏太深 2024-07-16 12:45:50

如前所述,SQL Anywhere 可用且稳定。 但它有一个缺点——您无法使用运行时引擎更改架构。 这使得向已分发的数据库添加列变得困难。

As noted, SQL Anywhere is available and solid. But it has a disadvantage--you can't change the schema using the run time engine. This makes it hard to, say, add a column to a db that you have distributed.

淡淡绿茶香 2024-07-16 12:45:50

++ DC 对 Firebird 的评论。 最好的免费数据库之一。 我多年来一直使用它来销售给律师事务所的 PB 应用程序。

尽管我使用服务器版本,即使目标是单个工作站。 简化部署以及以后根据需要添加工作站的问题。

我使用标准 Firebird ODBC 驱动程序 http://www.firebirdsql.org /index.php?op=files&id=odbc

我使用过两个很好的 GUI 前端数据库管理工具 - IBOConsole 和 Flamerobin。

++ to the comments by DC on Firebird. One of the best free databases out there. I have used it for years for a PB application I sell to Law Firms.

Although I use the server version even if the target is a single workstation. Simplifies the deployment and the issue of adding workstations later if desired.

I use the standard Firebird ODBC driver at http://www.firebirdsql.org/index.php?op=files&id=odbc

There are two good GUI front database management tools that I hve used - IBOConsole and Flamerobin.

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