急!!! vb 连 oracle 数据库报错!
急!!!vb连oracle数据库报错!表或视图不存在。从excel是可以连接到的,本机安装的oracle客户端连接测试也成功。请问是那样原因,怎么解决,谢谢!附连接码。Public Sub OpenOraDB1(datpath)
Dim conn_ora As New ADODB.Connection '用于连接ORACLE数据源的连接
conn_ora.ConnectionString = "Provider=MSDAORA.1;Password=" & datpath(3) & ";User ID=" & datpath(2) & " ;Data Source=" & datpath(1) & ";Persist Security Info=True"
conn_ora.Open
Dim myrs_ora As New ADODB.Recordset '用于连接ORACLE数据库的记录集
myrs_ora.ActiveConnection = conn_ora.ConnectionString
myrs_ora.Open ("Select * From NAWS_HOUR")
End Sub