While trying to connect to a database server via ODBC from a windows console program the connection is successful and getting data. But when i try to use same code in a windows service and at
odbc_connection.open();
I am getting this error
odbcERROR [08004] [Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve the connect identifier specified ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
Any idea what configuration is missing on my machine. Some idea might be helpful