Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通过ibm db2驱动程序将derby与.net c#连接起来_C#_.net_Db2_Derby - Fatal编程技术网

通过ibm db2驱动程序将derby与.net c#连接起来

通过ibm db2驱动程序将derby与.net c#连接起来,c#,.net,db2,derby,C#,.net,Db2,Derby,我正试图通过IBMDB2将derby数据库与C#应用程序连接起来 首先,我安装了IBM Data Server驱动程序包,根据以下url中提供的文档,它是 然后我安装了IBMDataServerClient,它在“bin”目录中有这个dll,我将它添加到系统路径中。并按照该文件遵循每一个步骤 但我也有错误 {System.Data.Odbc.OdbcException (0x80131937): ERROR [08001] [IBM][CLI Driver] SQL30081N A comm

我正试图通过IBMDB2将derby数据库与C#应用程序连接起来

首先,我安装了IBM Data Server驱动程序包,根据以下url中提供的文档,它是

然后我安装了IBMDataServerClient,它在“bin”目录中有这个dll,我将它添加到系统路径中。并按照该文件遵循每一个步骤

但我也有错误

{System.Data.Odbc.OdbcException (0x80131937): ERROR [08001] [IBM][CLI Driver] SQL30081N  A communication error has been detected. Communication protocol being used: "TCP/IP".  Communication API being used: "SOCKETS".  Location where the error was detected: "xx.xx.xx.xx".  Communication function detecting the error: "selectForRecvTimeout".  Protocol specific error code(s): "0", "*", "*".  SQLSTATE=08001
错误堆栈跟踪为

 at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode)
   at System.Data.Odbc.OdbcConnectionHandle..ctor(OdbcConnection connection, OdbcConnectionString constr, OdbcEnvironmentHandle environmentHandle)
   at System.Data.Odbc.OdbcConnectionOpen..ctor(OdbcConnection outerConnection, OdbcConnectionString connectionOptions)
   at System.Data.Odbc.OdbcConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
   at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
   at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
   at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
   at System.Data.Odbc.OdbcConnection.Open()

等待您宝贵的回复和评论

嗯,您意识到您引用的DeveloperWorks文章已经有10年了,对吗?那个版本的IBMADO.Net软件只能访问非常旧版本的Derby数据库,我相信是10.0到10.2版本


您没有提到要运行哪个版本的Derby,但除非它是非常旧的版本,否则您将无法使用此技术。

感谢您的帖子。我只是想知道是否有任何可能的方法来运行它。否则我们需要使用任何替代方法