wood burning stoves 2.0*
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
Author

list of sql servers

Vijay Vaddem
Ranch Hand

Joined: Feb 13, 2004
Posts: 243
Hi,

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

Vijay
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30324
    
150

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


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
 
subject: list of sql servers