Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
1k views

How do I bypass the typing of `GO` in `sqlcmd`?

sqlcmd has this most annoying this of having to type GO after every command, how can I get around this? SELECT 1 AS "foo" 2> GO foo ----------- 1 (1 rows affected) Can I make ...
Evan Carroll's user avatar
  • 64.7k
6 votes
2 answers
4k views

How do I get the Query Timing with sqlcmd?

Running SQL Server 2017, using the interactive REPL client sqlcmd how do I get the time for Query Execution? You can sp_BlitzErik showing this in his answer here, SQL Server Execution Times: CPU ...
Evan Carroll's user avatar
  • 64.7k