This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes SQL-server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "SQL-server" Watch "SQL-server" New topic


Henk Rog
Ranch Hand

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

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

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!)
I agree. Here's the link:
subject: SQL-server