Sample Header Ad - 728x90

How do I get the Query Timing with sqlcmd?

6 votes
2 answers
4427 views
Running SQL Server 2017, using the interactive [REPL client sqlcmd](https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop) how do I get the time for Query Execution? You can [sp_BlitzErik](https://dba.stackexchange.com/users/32281/sp-blitzerik) showing this in [his answer here,](https://dba.stackexchange.com/a/174093/2639) SQL Server Execution Times: CPU time = 1859 ms, elapsed time = 321 ms.
Asked by Evan Carroll (65502 rep)
May 23, 2017, 03:53 AM
Last activity: Dec 12, 2017, 05:52 PM