Home » RDBMS Server » Networking and Gateways » SQLConfigDataSource giving problems with Oracle ODBC
SQLConfigDataSource giving problems with Oracle ODBC [message #66441] |
Wed, 12 June 2002 15:25  |
Anil
Messages: 80 Registered: September 2001
|
Member |
|
|
Hello, I am trying to configure DSN through my application, and nothing I tried seems to work. Here's what I am doing:
CString odbcDriverName = ""Oracle in OraHome90"
CString attributes = "DSN=OracleDRDB;HOST=localhost;PORT=1521;UID=system;PWD=Anil;SERVER=DRight;"
(SQLConfigDataSource(NULL, ODBC_ADD_SYS_DSN, odbcDriverName, attributes)),
datails:
1.Database process is running on localmachine.
2.I have a TNS Listener running, and was able to create a SystemDSN usinf ODBC DataSourceAdministrator dialog, but doesn't work when I try thro' my application. I am particularly NOT clear with key words in 'attributes' field
I get the error code as ODBC_ERROR_REQUEST_FAILED, when I tried SQLInstallerError(...) function.
Any help would be greatly appreciated.
thanks/Anil.
|
|
|
|
|
Goto Forum:
Current Time: Fri May 02 04:50:39 CDT 2025
|