![](/img/trans.png)
[英]Error when using OleDb conneciton for SalesLogix using asp.net.No error message available, result code: E_FAIL(0x80004005)
[英]oledbConnection.Open() yields Error E_FAIL(0x80004005) when attempting to connect to Informix db using DSN
我正在尝试使用OledbConnection对象在ASP.NET脚本中使用VB连接到Informix数据库,这就是我的代码。
Dim oledbConnection = New OleDbConnection("Provider=ifxoledbc;DSN=DWH;")
qry = "select location from dim_location"
Try
oledbConnection.Open() '<-- interpreter bails here
'otherStuff
oledbConnection.Close()
Catch ex As Exception
Return ex.Message()
End Try
我在其他地方看到的问题几乎总是在查询中发生,但是对我而言显然不是这种情况,有人可以帮忙吗
以下是在notifyix上创建OLEDB连接的简单语法。 您可能需要更改代码段New OleDbConnection("Provider=ifxoledbc;DSN=DWH;")
以与下面的代码匹配
Provider=any oledb provider name;OledbKey1=someValue;OledbKey2=someValue;
希望有帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.