Code for DSN-Less connection not working?

L

LisaB

Code:
tdfCurrent.Connect = "ODBC;" & _
"Driver={Microsoft ODBC for Oracle};" & _
"Server=avidynhealth;" & _
"Uid=myUsername;" & _
"Pwd=myPassword"

Have tried san-oraprod1 and PRDAVDW as the server name and it still doesn't
work.

Get error cannot connect.
Here is my tnsnames.ora
PRDAVDW.avidynhealth.net=
(DESCRIPTION =
(ADDRESS = (PROTOCOL = tcp)(HOST = san-oraprod1.fhi.net)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = PRDAVDW.fhi.net)
(INSTANCE_NAME = PRDAVDW)
(SERVER = DEDICATED)
)
)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top