?
Solved

Ping Database Instance/Server

Posted on 2006-05-09
6
Medium Priority
?
1,037 Views
Last Modified: 2012-05-05
Is there an SQL Server utility that can ping a database instance/server?  With Oracle, you could use TNSPING.

Bob
0
Comment
Question by:Bob Learned
  • 3
  • 2
6 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 16641604
not really. try to connect to it using osql or isql is what I would try to do from the command line, or in an application trying to connect to it explicitely (or, if it should be without sql login, check if the service is running...)
0
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 16641659
Hi TheLearnedOne,

No utility, You can use PING command itself in a Query

exec master..xp_cmdshell "ping -t Server"

Aneesh R!
0
 
LVL 96

Author Comment

by:Bob Learned
ID: 16641732
I'll have to try that when I get home.  I don't allow the xp_cmdshell extend procedure to run.  Do you have the osql syntax?

Thanks,
Bob
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 2000 total points
ID: 16641766
0
 
LVL 96

Author Comment

by:Bob Learned
ID: 16641805
I could do something like this, then?

   osql -S SERVER\SQLEXPRESS -d master

I haven't actually used osql before (other than some batch file), so I am assuming that the arguments are case sensitive.

Bob
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 16641861
yes, the arguments are case sensitive
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Suggested Courses

862 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