aspose file tools*
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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
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
Similar Threads
Connecting WSAD with Sql Server
Application Hang when delete() method execute
count number of coulmns in table?
Sql optimizer
Best JDBC drivers?