vb.net 在本地网络上连接 firebird 数据库
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16688399/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Connecting firebird database on a local network
提问by user2272747
I made a program on vb.net and that has Firebird 2.1 as Database. I have a server also that has Firebird 2.1 and Firebird ODBC installed. What I want to do is to run the program on a client. The problem is it doesn't run and return ERROR like:
我在 vb.net 上做了一个程序,它有 Firebird 2.1 作为数据库。我还有一台安装了 Firebird 2.1 和 Firebird ODBC 的服务器。我想做的是在客户端上运行程序。问题是它不运行并返回 ERROR,如:
ERROR[08004][ODBC Firebird Driver]Unable to connect to data source:
library 'gds32.dll' failed to load
ERROR[08004][ODBC Firebird Driver]Unable to connect to data source:
library 'gds32.dll' failed to load
If I would install the Firebird 2.1 server to the client - it would return error looking for a database.
如果我将 Firebird 2.1 服务器安装到客户端 - 它会返回查找数据库的错误。
What should I do would anyone help me? Any help will be much appreciated.
我该怎么办有人会帮助我吗?任何帮助都感激不尽。
My project supposed to be like a server-client, where on the server will be the Firebird 2.1 server and Firebird ODBC installed together with the database located at C:\My_Database\CLIENT_CUSTOMER.FDBand the application located at the shared files where certain clients can access.
我的项目应该像一个服务器客户端,服务器上将安装 Firebird 2.1 服务器和 Firebird ODBC,C:\My_Database\CLIENT_CUSTOMER.FDB以及位于 的数据库和位于某些客户端可以访问的共享文件的应用程序。
Thanks in advance!
提前致谢!
回答by ain
The ODBC driver youre using looks for the gds32.dllas the client library - thats the client library name from the InterBase days. If you can change the ODBC datasource's configuration, change it to look for the fbclient.dllinstead. Or as an alternative, copy the fbclient.dllto system32directory and rename it to gds32.dll.
您使用的 ODBC 驱动程序查找gds32.dll作为客户端库 - 这是 InterBase 时代的客户端库名称。如果您可以更改 ODBC 数据源的配置,请将其更改为查找fbclient.dll。或者作为替代方法,复制fbclient.dlltosystem32目录并将其重命名为gds32.dll.

