Skip to content
  • There are no suggestions because the search field is empty.

Target Object Comment Type (Project)

Applies to
Platform: Microsoft SQL Server · Snowflake · Snowflake dbt · Databricks · Databricks dbt · Fabric Lakehouse · Oracle

Target Object Comment Type (TargetObjectCommentType) decides whether model object and term descriptions become comments of the generated tables and views. Use it to make the descriptions visible in the database catalog.

The Fabric Warehouse generators do not offer the property.

Values and default

Choose one value in the Implementation group of the Additional Settings in Project Settings:

  • None (default): no comments.
  • Tables: the tables get the model object description and the term descriptions as comments.
  • Tables and Views: the tables and the result views get them.

The dbt generators offer None and Tables and Views only.

Effect on generated output

On Microsoft SQL Server, the comments are extended properties named MS_Description. A term without description gets no comment.

Example

The Link single_customer_hub_lnk has the description LNK_0004. With Tables, its table script on Microsoft SQL Server adds, shortened:

EXEC sp_addextendedproperty @name = N'MS_Description',
    @value = N'LNK_0004', @level0type = N'SCHEMA',
    @level0name = N'<schema>', @level1type = N'TABLE',
    @level1name = N'RDV_LNK_single_customer_hub_lnk';
EXEC sp_addextendedproperty @name = N'MS_Description',
    @value = N'Identifier of a record', ...
    @level2type = N'COLUMN', @level2name = N'Link_HK';

With Tables and Views, the result view RDV_LNK_single_customer_hub_lnk_Result gets the same comments with @level1type = N'VIEW'.

Related articles