Two Laptop Bag*
The moose likes JDBC and the fly likes SQL-server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "SQL-server" Watch "SQL-server" New topic
Author

SQL-server

Henk Rog
Ranch Hand

Joined: Dec 04, 2003
Posts: 36
Is there a method to check if an SQL-server is running?
Christian Wolf
Greenhorn

Joined: Dec 15, 2003
Posts: 28
Is there a method to check if an SQL-server is running?
*g* Sure. The same method as with every server. Try to connect to it. Either it fails (timeout) or you get a response from the server.
Christian Wolf
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

moving this to the JDBC forum
(even though I'm pretty sure Christian gave you the best answer -- just be sure to check for an exception to come back!)
 
Consider Paul's rocket mass heater.
 
subject: SQL-server