• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • Last Modified:

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

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
25112
Asked:
25112
2 Solutions
 
ZberteocCommented:
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
 
Vitor MontalvãoMSSQL Senior EngineerCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now