my dog learned polymorphism
The moose likes I/O and Streams and the fly likes list of sql servers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "list of sql servers" Watch "list of sql servers" New topic

list of sql servers

Vijay Vaddem
Ranch Hand

Joined: Feb 13, 2004
Posts: 243

Im trying to get the list of sql servers available. For this,
I wrote a batch file with the command "osql /L > C:\servers.txt"

when i try to read this file from java class, it is able to
read the content successfully (Rather most of the times... )

However, sometimes...... it doesn't ...???
I really wonder what could be the reason....
here is the code...

Thanks in advance

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32628

This question is more about file I/O than JDBC. I'm moving this to our I/O forum.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
wood burning stoves
subject: list of sql servers
It's not a secret anymore!