简体   繁体   English

用于 interBase 的 ODBC 连接器

[英]ODBC connector for interBase

im trying to connect to to an interBase database, and create a ASP.net application.我试图连接到一个 interBase 数据库,并创建一个 ASP.net 应用程序。 im using a 64bit machine but for sum reason I cant seem to add the data source from the data source administrator.我使用的是 64 位机器,但出于总和原因,我似乎无法从数据源管理员那里添加数据源。 im using a program called data direct which worked perfectly on my 32bit machine.我使用了一个名为 data direct 的程序,它在我的 32 位机器上运行良好。

can any one suggest how I may be bale to solve this??任何人都可以建议我如何解决这个问题?

Although there is (as of IB XE) a 64 bit client for IB, I don't think Embarcadero/DataDirect currently ship a 64 bit ODBC driver.虽然(从 IB XE 开始)有 64 位 IB 客户端,但我认为 Embarcadero/DataDirect 目前还没有提供 64 位 ODBC 驱动程序。 Therefore you would need to use a 32 bit app pool and set up the data source using the 32 bit ODBC control panel (or directly in the 32 bit registry).因此,您需要使用 32 位应用程序池并使用 32 位 ODBC 控制面板(或直接在 32 位注册表中)设置数据源 This will work on a 64 bit machine.适用于 64 位机器。

I agree with Craig.我同意克雷格的观点。 But a bit suggest: You can step the ODBC creation, by using directly and odbc.odbcConnection:但是有点建议:您可以直接使用 odbc.odbcConnection 来创建 ODBC:

$  Dim sConnStr As String 
$  sConnStr = "Driver={INTERSOLV Interbase ODBC Driver (*.gdb)};
$        uid=sysdba;
$        password=masterkey;
$        database=server:path"
$  Dim oConn As New Odbc.OdbcConnection(sConnStr) 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM