|
|
Question : Creating a ODBC connection to Sybase ASE 12.5 db
|
|
hello experts, I need to create an ODBC connection for Sybase. Client machine: XP using DataDirect ODBC driver Server machine: Redhat with Sybase ASE 12.5 I am a newbie to Sybase by the way, so please forgive my naiveness. Anway, here is what I did to try to create a connection to my Sybase server 1) Start my db in Sybase. I think it is running ok, since I can do query in isql fine. 2) in my XP box: I added an ODBC data source by using DataDirect 5.0 Sybase Wire Protocol, and I used the following info for the pop up windows Network Libarary Name: winsock Network address: {the IP from my Linux box (I know for sure it's correct)}, {port number to connect to sybase} (e.x: x.x.x.x, 7543) Database Name: SID for the running db in my linux box
However, when I run Test Connect (after entering sa/password) , it said "Connection refused. Verify host name and port number" Well, I double check the IP address and port number :), and it still didn't work? Could you please give me some hints to sovle this problem? thanks, Do
|
Answer : Creating a ODBC connection to Sybase ASE 12.5 db
|
|
AFAIK, you don't need any server side instalation to use ODBC Sybase Wire Protocol.
Check, what IP address is bound to myHOSTNAME on your server - I suspect, that it's localhost (127.0.0.1). If it's true, it means, that your ASE listens only to connection from this local address. You have to change your interfaces on server to use the same IP address that you enter in ODBC connection.
|
|
|
|
|