dbTalk Databases Forums  

Connecting to a sybase 9 server via ODBC from Unix (PHP)

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss Connecting to a sybase 9 server via ODBC from Unix (PHP) in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
castus
 
Posts: n/a

Default Connecting to a sybase 9 server via ODBC from Unix (PHP) - 06-06-2011 , 06:04 AM






Hi,

I have been trying to connect to a sybase 9 database through ODBC
using SQL Anywhere with no joy. I couldn't getthe LD_LIBRARY_Path to
be picked up and the correct .so files weren't found. I thought it
might be something to do with me running CentOS on the web server.

I have since tried FreeTDS via unixODBC, which worked, but I could not
CALL stored procedures through it. It just hang if I ran "{CALL
mr_proc(x,y,z);}" as a normal SQL query and I would get an error
saying i didn't have the rights to CREATE PROCEDURE if I ran the
odbc_prepare and odbc_connect functions.

I have also tried the sqlanywhere ODBC drivers, but everytime I get a
cannot open file error.

"Can't open lib '/opt/sqlanywhere12/lib64/libdbodbc12_r.so' :
libdbtasks12_r.so: cannot open shared object file: No such file or
directory,"

I have tried with _n and generic versions also. As well as the 32 bit
versions. Wrong ELF class.

Any help would be appreciated. I got as far as running queries fine
with FreeTDS, but could not run procedures. I can get no where with
the sybase stuff.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.