Calculate execution time of a SQL query?

前端 未结 8 439
悲&欢浪女
悲&欢浪女 2020-12-04 14:17

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

8条回答
  •  余生分开走
    2020-12-04 14:54

    Well, If you really want to do it in your DB there is a more accurate way as given in MSDN:

    SET STATISTICS TIME ON
    

    You can read this information from your application as well.

提交回复
热议问题