Clearing Screen in SQLCMD console

Alex Michael Netto 21 Reputation points
2022-11-09T19:04:37.923+00:00

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
    2022-11-11T07:26:31.743+00:00

    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
    2023-01-28T09:33:42.0566667+00:00

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