Hey I have just been working on a program that makes a link to a sybase database (ASE 12.4) and it is very complicated, I would research FreeTDS (freetds.org) ctlib, db-lib and Sybase OpenClient (sybase.com) in the end I came up with an alternative solution using embedded perl to make the connection with DBI and DBD::Sybase, it was a lot easier.