Solved

Get list of Sybase servers

Posted on 2007-04-05
4
1,300 Views
Last Modified: 2012-05-05
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
Comment
Question by:mahanatti
4 Comments
 
LVL 19

Accepted Solution

by:
grant300 earned 25 total points
ID: 18868555
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
 
LVL 2

Assisted Solution

by:shakir77
shakir77 earned 25 total points
ID: 19032652
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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How to query constraints in Sybase 3 1,458
SyBase SQL Syntax 7 309
How do I get Sybase ASE to throw an error that Java can catch? 4 488
sybase 3 26
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Use of TCL script on Cisco devices:  - create file and merge it with running configuration to apply configuration changes
This video discusses moving either the default database or any database to a new volume.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now