Clearing Screen in SQLCMD console

Alex Michael Netto 21 Reputation points

Is there a command or function available in sqlcmd to clear the screen?

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
9,783 questions
{count} votes

2 answers

Sort by: Most helpful
  1. YufeiShao-msft 6,986 Reputation points

    Hi @Alex Michael Netto

    It seems can clear the screen by closing and reopening SQLCMD


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Tomm 0 Reputation points

    I just wonder why don't we just Ctrl + C to terminate the current sqlcmd session and type cls to clear screen?