The forum will be unavailable for maintenance at some point from Friday, April 13 at 19:00 EDT until Sunday, April 15 at 23:59 EDT. Downtime will be minimized but the exact timing is unknown.

Hi Gurus, We're beatin' our heads against the wall trying to figure this thing out and searching the web points to solutions in IQ - but not ASE. Therein lies the problem.

In Ruby this syntax:

dbh = DBI.connect("DBI:SQLAnywhere:DBN=xxx;HOST=host:port", user, pwd)

works great connecting to Sybase IQ - but when host:port is Sybase ASE it fails to connect.

Would anyone know if SQLAnywhere is the right adaptor for ASE and if so how might the connect string differ?


asked 03 Aug '11, 19:20

spragues's gravatar image

accept rate: 0%

edited 04 Aug '11, 15:36

Volker%20Barth's gravatar image

Volker Barth

Unfortunately, the SQL Anywhere adapter is not capable of connecting to Sybase ASE databases. The SQL Anywhere adapter is capable of connecting to SQL Anywhere and IQ, but it not yet supported by Sybase ASE. I am not aware of any Ruby-DBI support for Sybase ASE.

I am not sure of the constraints of your project, but one thing you could consider is using JRuby, and using ASE's JDBC driver to make the connection.

permanent link

answered 03 Aug '11, 20:49

Eric%20Farrar's gravatar image

Eric Farrar
accept rate: 30%

Thanks Eric for you response. Good to know at least it might not be me just being stupid with ASE. In the time after i posted a colleague of mine was able to finagle a Ruby-ODBC connection to work which as you suggested - ala JDBC - might be a workaround. So we'll take this as the solution until or if a DBI solution emerges.

Thanks again.


(03 Aug '11, 23:06) spragues
Your answer
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 03 Aug '11, 19:20

question was seen: 2,335 times

last updated: 07 Feb '13, 10:44