aspose file tools*
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 Java 8 in Action this week in the Java 8 forum!
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: 29275
    
140

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