• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 162
  • 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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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