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. |