Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

DSN-less connection to Oracle from PB11.5

$
0
0

Hi All.

 

I am playing with using DSN-less ODBC for Oracle out of PB11.5.

 

I can successfully connect using the Microsoft ODBC for Oracle driver:

 

sqlca.dbms = "ODBC"

sqlca.dbparm = "Connectstring='DRIVER=Microsoft ODBC for Oracle; SERVER=MyTNS; UID=MyUID; PWD=MyPWD'"

connect using sqlca;

 

However when I try to use the Oracle ODBC driver:

 

sqlca.dbms = "ODBC"

sqlca.dbparm = "Connectstring='DRIVER=Oracle in OraClient11g_home1; SERVER=MyTNS; UID=MyUID; PWD=MyPWD'"

connect using sqlca;

 

I get the Oracle ODBC Driver Connect dialog box in which I can see my User Name and Password but the

Service Name is empty and I need to key it in. Obviously the SERVER= attribute does not work for

the Oracle OBDC driver the same way it works for the Microsoft ODBC for Oracle driver.

 

Can anyone either/or:

1. Advise me what is the correct attribute setting for the Oracle ODBC driver

2. Point me to where I can read/learn the right settings

3. Both above

 

TIA

 

Larry Peters


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>