I am providing search functionality in my website, when user searches a record then I want to display the time the query taken to get the results same as google does. When w
Please use
-- turn on statistics IO for IO related SET STATISTICS IO ON GO
and for time calculation use
SET STATISTICS TIME ON GO
then It will give result for every query . In messages window near query input window.