-- (TSQL Statement)

is an inline comment in the batch.

Syntax

-- text_of_comment

Arguments

text_of_comment
is the text of your comment. The comment ends at the end of line.

Remarks

The text that follows two hyphens -- until the end of line is just skipped by the parser.

Examples

----------------- this is a comment ------------------

-- this is also a comment

PRINT 'Hello'; -- this is a comment too