After installing Sybase yesterday, you can use the client tool dbartisan 8.6.1 to connect to the data. The message "datasource connection failed." is always displayed .",
The error message output by the console is as follows: 09:19:42. 656 programlayer (5), origin (3), severity (5), number (4)Ct_connect (): network packet layer: internal net library error: Net-Lib protocol driver call to connect two endpoints failed (08001)
After a long time of hard work, I did not find the reason why I couldn't connect. I was so depressed. First, I checked whether the service was started, changed the user's Sa password to a non-empty password, or failed to connect, I searched the internet, but still did not find a solution. Without a compromise, I tried to connect to the database of the company's server to see if it could be connected (the database of the server is certainly okay, and my colleagues are working on that database ), if the database on the server cannot be connected, my client tool dbartisan 8.6.1 may be faulty. The result is yes. The database connected to the server can be connected normally.
When I couldn't find my clue, I suddenly remembered that Sybase had a dsedit utility tool to configure client connection. So I opened this tool, I found the connection configuration of my local database and compared it with the configuration I just made in dbartisan 8.6.1. Huang Tianyan had no pains and finally found the problem, it was originally set in dbartisan 8.6.1Connection PortNo, the dsedit utility tool shows that the connection port of my database is 5010 (I don't know how the connection port of my database has changed to 5010, And I didn't modify the Port during installation, is it because I have installed it before ?), The connection port I set in dbartisan 8.6.1 is 5000. it is OK to change the connection port to 5010. The problem is finally solved successfully!