This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
internet detective

Joined: May 26, 2003
Posts: 30130

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
I agree. Here's the link:
subject: list of sql servers
Similar Threads
Reading Elements from an ArrayList, 3 at a time
Runtime.getRuntime().exec(commandToExecute) without promting for enter key to be pressed
regarding peer to peer network through java
Reg:Executing Commands
who can my question about this code