Oracle.DataAccess 连Oracle怎么老出错,try catch 打印出来的
错误信息是"空"...... Try Dim ora As OracleConnection ora = New OracleConnection( "Data Source=data;User ID=test;Password=test ") ora.Open() Catch ex As System.Exception Msg
Box(ex.Message) End Try 用下面这种
方法连就可以连: Try dim m_con As Data.OracleClient.OracleConnection m_con = New Data.OracleClient.OracleConnection( "Data Source=data;User ID=test;Password=test ") m_con.Open() Catch ex As System.Exception Msg
Box(ex.Message) Exit Function End Try 这是怎么回事啊,同样的连接语句,用Oracle.DataAccess怎么就连不上呢..... __________________________________________________________________________ 不知道为什么。 我是用后面的
方法做 嘿嘿 __________________________________________________________________________ 真是怪事....... __________________________________________________________________________ 引用了“System.Data.OracleClient”,并“Imports System.Data.OracleClient”后再试试看。 __________________________________________________________________________
原文链接:https://www.f2er.com/vb/264024.html