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

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

问题描述

我运行Win7的64位和Firebird 2.5.2。

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

是否有可能通过ODBC从64位C ++应用程序来访问32位Firebird数据库?我最初的想法是,我可以只安装64位的火鸟ODBC驱动程序,它会工作。果然,在安装后64位ODBC控制面板应用程序显示了火鸟驱动程序,而是试图将其指向与32位火鸟创建了一个名为.fdb文件时,连接失败。我捡了客户端库从64位火鸟安装以及(C:\ Program Files文件\火鸟\ Firebird_2_5 \ BIN \ fbclient.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 Files\Firebird\Firebird_2_5\bin\fbclient.dll).

在通过ODBC从64位C ++应用程序访问的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位火鸟装)我的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位数据库。此外,根据马克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天全站免登陆