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.


We are trying config our environment ( Linux websrv01 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2+deb8u5 (2017-09-19) x86_64 PHP Version 7.0.26-1~dotdeb+8.2) to connect to SyBase 16


 $connection = new PDO("dblib:version=8;charset=UTF-8;host=".$host.":".$port.";dbname=".$dbname, $username, $password)

we get this error: « SQLSTATE[] (null) (severity 0) »

and with this:

 $connection = new PDO("sybase:host=".$host.":".$port.";dbname=".$dbname, $username, $password);

result in « could not find driver »

but we get the driver from debian packages php7.0

Any tips?



asked 20 Dec '17, 10:17

wjat777's gravatar image

accept rate: 0%

edited 21 Dec '17, 13:21


Can you please give a detailed description, what exactly you are trying to do and what error message you get (if any)?

(20 Dec '17, 12:57) Reimer Pods
Comment Text Removed

I think the problem is that the "Sybase" driver that you are trying to use is for Adaptive Server ENTERPRISE and not SQL Anywhere - Sybase had several different database technologies. While SQL Anywhere does support TDS based connections, third party vendors often neglect that there is a difference between the database offerings and might code for ASE specific database objects. It might be that you simply need open client to establish the connection (you will need to configure the interfaces file). Alternatively, you should be able to use the ODBC PDO with SQL Anywhere. Or you can use the SQL Anywhere PHP driver.

(21 Dec '17, 14:30) Chris Keating
Be the first one to answer this question!
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: 20 Dec '17, 10:17

question was seen: 253 times

last updated: 21 Dec '17, 14:30