SQL Flow Field Guide

Slash Star (Block Comment)

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

block comment, can nest (lexical)

What changes

Input
none
Output or change
none

Syntax at a glance

/* text_of_comment */

Work example

A multiline note must explain a block of SQL without hiding executable code.

Keep block comments short and closed. Check nested comment markers before running the script.

Check your work Slash Star (Block Comment). The comment ends where intended and every executable statement remains visible to the parser.

Open Microsoft Learn for full syntax, permissions, and details for your version.