Solved

Determine whether a server is responding

Posted on 2004-10-14
4
221 Views
Last Modified: 2010-05-02
I am trying to determine whether a server is responding.
I tried using ListAvailableSQLServers:

    Set oNames = oSQLApp.ListAvailableSQLServers()
    For i = 1 To oNames.Count
        If oNames.Item(i) = serverName Then
            serverCheck = True
            Exit For
        End If
    Next i

However, I get an error 'Not enough storage is available to complete this operation' when the oSQLApp.ListAvailableSQLServers() command is executed.

Is there another way to determine whether a server is availabe?

Thanks,

Louise
0
Comment
Question by:louiserutherford
4 Comments
 
LVL 26

Accepted Solution

by:
EDDYKT earned 250 total points
ID: 12307302
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 12307385
0
 
LVL 76

Expert Comment

by:David Lee
ID: 12315138
What do you consider to be "available"?  Ping will tell you if the server is available from a communications perspective.  WMI will allow you to see if a specific service is running on a given machine.  If you could be a little more specific, then we might be able to give a more definitive answer.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now