使用 Delphi 2006 连接 ODBC 数据源的正确方法?

发布于 2024-07-08 04:39:09 字数 95 浏览 4 评论 0原文

连接 ODBC 数据源并执行一些 SQL 语句的正确方法是什么?

TQuery 和其他 BDE 组件可以做到这一点,但如果我理解正确的话,它们现在已被弃用?

What's proper way to connect ODBC datasources and execute some SQL statements?

TQuery and other BDE components can do it, but if I understood correctly they are now deprecated?

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

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

发布评论

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

评论(2

恋竹姑娘 2024-07-15 04:39:09

您可以使用 ADO 组件:

1) 从 dbGo 选项卡中拖动 TAdoConnection。

2) 右键单击​​并选择编辑连接字符串。

3) 单击“构建”

4) 选择“Microsoft OLE DB Provider for ODBC”

5) 单击“下一步”

然后您将能够选择一个数据库。

您可以拖动 TAdoQuery 并将其连接到 TAdoConnection 以执行一些查询。

其余的应该是直接的。

You can use the ADO components:

1) Drag a TAdoConnection from the dbGo tab.

2) Right click and choose Edit connection string.

3) Click build

4) Select Microsoft OLE DB Provider for ODBC

5) Click Next

Then you will be able to select a database.

You can drag a TAdoQuery and connect it to the TAdoConnection to execute some queries.

The rest should be straight forward.

相思故 2024-07-15 04:39:09

我想到的是 ADO(在 dbGo 组件组下)和 dbExpress(在 dbExpress 组件组下)。

ADO (under the dbGo components component group) as well as dbExpress (under the dbExpress component group) come to mind.

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