cancel
Showing results for 
Search instead for 
Did you mean: 

data connection

0 Kudos
1,812

Hello everyone

can i connect to sybase anywhere 12 from powerbuilder without ODBC?

Thank you.

View Entire Topic
chris_keating
Product and Topic Expert
Product and Topic Expert

PowerBuilder supports a number of database interfaces other than ODBC. Those options include JDBC, OLEDB, and ADO.NET (and it may also be possible to connect via openclient although that is not supported - or known to work).

You can connect using ODBC without a DSN. That technique is termed a DNSLess connection. This is an ODBC feature that requires the use of the parameter Driver that is set to the value of the ODBC Driver Name. Here is an example:

sqlca.DBMS="ODBC"
sqlca.DBParm = "ConnectString='Driver={SQL Anywhere 12};ENG=SAEng,DBN=SADbName;UID=dba;Pwd=sql'"

The PowerBuilder Documentation "Connecting to your database" describes each of the interface options and is a useful reference.