Solved

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

Posted on 2014-10-07
2
145 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 45

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
table fragmentation 40 74
Access Date Query 28 30
how to check the index used by a MS SQL queries or SP 7 12
Join vs where 2 0
If you find yourself in this situation “I have used SELECT DISTINCT but I’m getting duplicates” then I'm sorry to say you are using the wrong SQL technique as it only does one thing which is: produces whole rows that are unique. If the results you a…
This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

747 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

9 Experts available now in Live!

Get 1:1 Help Now