-- (Comment)
single-line comment (lexical)
What changes
- Input
- none
- Output or change
- none
Syntax at a glance
-- text_of_comment
Work example
A script needs a short note that explains why a non-obvious rule exists.
Keep comments beside the rule they explain. Remove claims that no longer match the SQL and never place secrets in comments.
Check your work -- (Comment). A reader can tell executable text from comments and the note still matches the current statement.
Open Microsoft Learn for full syntax, permissions, and details for your version.