通过 ODBC 从 64 位应用程序访问 32 位 Firebird 数据库 [英] Access a 32-bit Firebird database from a 64-bit app via ODBC

查看:39
本文介绍了通过 ODBC 从 64 位应用程序访问 32 位 Firebird 数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行的是 Win7 64 位和 Firebird 2.5.2.

I'm running Win7 64-bit and Firebird 2.5.2.

是否可以从 64 位 C++ 应用程序通过 ODBC 访问 32 位 Firebird 数据库?我最初的想法是我可以只安装 64 位 Firebird ODBC 驱动程序,它就可以工作.果然,在安装 64 位 ODBC 控制面板应用程序后,它会显示 Firebird 驱动程序,但在尝试将其指向使用 32 位 Firebird 创建的 .fdb 文件时连接失败.我也从 64 位 firebird 安装中选择客户端库(C:Program FilesFirebirdFirebird_2_5infbclient.dll).

Is it possible to access a 32-bit Firebird database via ODBC from a 64-bit C++ application? My initial thought was that I could just install the 64-bit Firebird ODBC driver and it would work. Sure enough, after installing it the 64-bit ODBC control panel app shows the Firebird driver, but the connection fails when trying to point it to an .fdb file created with 32-bit Firebird. I'm picking the client library from the 64-bit firebird install as well (C:Program FilesFirebirdFirebird_2_5infbclient.dll).

关于从 64 位 C++ 应用程序通过 ODBC 访问 32 位 Firebird 数据库的任何建议?

Any suggestions on accessing a 32-bit Firebird database via ODBC from a 64-bit C++ application?

糟糕,看起来它工作正常.我一定是在设置时不小心混合了一些 32 位和 64 位的配置.一旦我确保我 1) 运行 64 位服务器,2) 使用 64 位 ODBC 数据源,其中 3) 引用 64 位客户端 DLL(来自 64 位 Firebird 安装)我的 64 位 C++应用连接没有问题.

My bad, looks like its working fine. I must have accidentally mixed some 32- and 64-bit pieces of the config when setting things up. Once I ensured that I was 1) running the 64-bit server, 2) using a 64-bit ODBC data source which 3) referred to the 64-bit client DLL (from the 64-bit Firebird install) my 64-bit C++ app connected with no issue.

我以为我检查了这些,但我一定错过了 32 位和 64 位之间的某些内容.

I thought I checked those but I must have missed something in going between 32- and 64-bit.

推荐答案

查看原始帖子中的编辑.问题是在配置中混合了一些 32 位和 64 位的部分.它现在工作.正确设置后,您绝对可以从 64 位应用程序访问 32 位数据库.此外,根据 Mark Rotteveel 的说法,您可以运行 32 位服务器并从 64 位应用程序使用它,只要您在应用程序端使用 64 位组件.

See edit in original post. The problem was mixing some of the 32- and 64-bit pieces in the config. Its working now. You definitely can access the 32-bit database from the 64-bit app once setup properly. Also according to Mark Rotteveel you can run the 32-bit server and use that from the 64-bit app as long as you're using the 64-bit pieces on the app side.

这篇关于通过 ODBC 从 64 位应用程序访问 32 位 Firebird 数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆