sql server - Measure network time in SQL query -


question raised out of curiosity while working on sql query on vpn connection. vpn slow hence query performing slow. don't have direct access database server, test queries need run them through vpn :(

is there way eliminate time taken network lag due vpn , know actual time taken query? without making copy of database , bringing local system/network.

you network performance totally dependent on infrastructure.

for identifying execution time can use time statistics. run below query set on

set statistics time on; 

now run query. if switch "messages" table of results see below. execution time.

 sql server execution times:    cpu time = 0 ms,  elapsed time = 0 ms. 

Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -