Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/14.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
Vb.net 关于使用.net的ODBC连接字符串_Vb.net_Odbc - Fatal编程技术网

Vb.net 关于使用.net的ODBC连接字符串

Vb.net 关于使用.net的ODBC连接字符串,vb.net,odbc,Vb.net,Odbc,连接到oracle DB时出错。我使用ODBC驱动程序使用连接字符串语句。我想从orcle db中获取一些数据,并将其绑定到某个控件中。oracle客户端已安装在我的计算机中 my db name is PINDB it's in another server. Not in localhost. am creating oracle driver named as obdialer il localhost local host ip adress is 10.103.1.166 the D

连接到oracle DB时出错。我使用ODBC驱动程序使用连接字符串语句。我想从orcle db中获取一些数据,并将其绑定到某个控件中。oracle客户端已安装在我的计算机中

my db name is PINDB it's in another server. Not in localhost. 
am creating oracle driver named as obdialer il localhost
local host ip adress is 10.103.1.166
the DB is placed in this server (IP 172.23.6.217)
user id is RAM 
password is RAM 

in my programme am using the connection string as like this.

code
----
conn.ConnectionString = ("Driver ={Microsoft ODBC for Oracle};server=172.23.6.217.PINDB;Uid =OEARENEWAL;Pwd =OEARENEWAL;Persist Security Info=False;Trusted_Connection=Yes")
try
  con.open()
  ----------
  ----------
 catch ex as exception
    msgbox(ex.message)
 end try



i didnt get any error and also the values are not bind to that particular control.
pls help me to correct the error in connectionstring. 
根据您的连接字符串基本上是正确的,但请尝试删除最后两个属性。指定用户名和密码时,它不是受信任的连接:

conn.ConnectionString = "Driver={Microsoft ODBC for Oracle};server=172.23.6.217.PINDB;Uid=OEARENEWAL;Pwd=OEARENEWAL"

我将从您的连接字符串中删除凭据。您收到的错误消息是什么?