• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1350
  • Last Modified:

Get list of Sybase servers

I have a Windows Application which has to list down all the Sybase database servers in the network. Please tell me how can I get the list of all the sybase instances in the network.
0
mahanatti
Asked:
mahanatti
2 Solutions
 
grant300Commented:
You cannot get them out of thin air.  Sybase ASE does not broadcast it's existence so there is no way to discover them.

Sybase Open Client (what you will be using even if you have an ODBC application), uses a configuration file that contains the address and port of each of the server you intend to connect to.  On windows, that file is called SQL.INI.  In the rest of the world it is called INTERFACES.

There is a tool in the Sybase windows client suite called DSEDIT that you can use to maintain the SQL.INI file.

Normally what you would do is create one master SQL.INI file with all of the servers in it then distribute that to every windows box.  You may be able to use a third part tool to create a unix-style link in windows (yes, NTFS supports it under the covers but, of course microsquish chose not to expose it in explorer or the command line) to the master SQL.INI file on a shared drive someplace.

Regards,
Bill
0
 
shakir77Commented:
Try reading sybase server interface file which lists all the server ( if properly maintained by respective group)  - Rest all other methods are more of hacking - hence not even explaining

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now