Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

Hello everyone

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

Thank you.

asked 12 May '17, 02:17

thaerlb's gravatar image

thaerlb
127121215
accept rate: 0%


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.

permanent link

answered 12 May '17, 09:28

Chris%20Keating's gravatar image

Chris Keating
7.8k49128
accept rate: 32%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×28

question asked: 12 May '17, 02:17

question was seen: 1,446 times

last updated: 12 May '17, 09:28