Skip to main content

Add SQL Comments

Enable this option to include user-defined metadata as SQL comments in your CREATE TABLE scripts.

When enabled, the generated Snowflake DDL can include COMMENT IF EXISTS ON TABLE and COMMENT IF EXISTS ON COLUMN statements that carry a Description text from the model, or a Comments text where there is no Description. Each backslash and each single quote of the comment text is written twice in the statement, so Snowflake stores each of them as typed.

When to Change This Setting​

Enable it to carry the model's descriptions into Snowflake, where they surface as object and column comments for consumers of the database.

SettingInteraction
Create TableThe DDL the comment statements accompany

Notes​

  • This setting is part of the Snowflake settings category.
  • The default value for this setting is N.