Hi guys, i have problems with an application that should connect either to a SQL2000 server or to an Oracle Server
The connection to the SQL2000 server work fine but i have the following error when i try to open the connection to the Oracle Server
ORA-12514 : TNS listener could not resolve SERVICE_NAME given in connect descriptor
I guess that the error is in the connectionstring for Oracle but i cant find what i need to put
Here is the related code :
The connection to the SQL2000 server work fine but i have the following error when i try to open the connection to the Oracle Server
ORA-12514 : TNS listener could not resolve SERVICE_NAME given in connect descriptor
I guess that the error is in the connectionstring for Oracle but i cant find what i need to put
Here is the related code :
Public Shared MyConnection As New System.Data.OleDb.OleDbConnection()
FOR SQL2000
MyConnection.ConnectionString = "Provider=SQLOLEDB;Data Source=" & ServerName & ";Initial Catalog=" & DBName & ";Integrated Security=SSPI;"
FOR ORACLE
MyConnection.ConnectionString = "Provider=MSDAORA;Data Source=" & ServerName & ";Integrated Security=SSPI;password=xxxx;User ID=xxxx"
MyConnection.Open()