Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

a simple query in a while loop to check SQL Server response

Posted on 2014-10-07
2
149 Views
Last Modified: 2014-10-08
could you recommend/suggest  a simple SQL statement that can be run every minute or 3 or so, to bring a response and how many [ms] it took to bring it back.. just to get an idea of the response time.. that will give some idea that the system is  not over-whelmed..
 
 thanks
0
Comment
Question by:25112
2 Comments
 
LVL 26

Assisted Solution

by:Zberteoc
Zberteoc earned 250 total points
ID: 40367104
Basically from a simple app you connect to a SQL server and then execute:

SELECT 1

if you capture the time before you send the request and the time after the request came back and make a difference you will have your answer.
0
 
LVL 48

Accepted Solution

by:
Vitor Montalvão earned 250 total points
ID: 40367735
SELECT GETDATE() returns the current date and time on the server but it's not like that that you verify for bottlenecks in SQL Server,
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

840 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