:RESET
Clear the statements waiting in the client buffer.
Syntax at a glance
:RESET
Work example
Discard a draft batch
Type a harmless SELECT and enter :RESET. Then inspect the buffer with :List.
Check your work The old statement is gone and the connection remains open.
Open Microsoft Learn for full syntax, permissions, and details for your version.