• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

list of sql servers

 
Vijay Vaddem
Ranch Hand
Posts: 243
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 33671
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vijay,
This question is more about file I/O than JDBC. I'm moving this to our I/O forum.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic