SYSTEM$UNMANAGE_ENTITY_FROM_DCM_PROJECT

functionnot supportedContainer services & dev toolingpreview

docs.snowflake.com ↗

System functions

Removes an entity from the management scope of a DCM project without dropping the entity. Managed grants or attachments to the entity remain unchanged. You must also remove the entity’s definition from the DCM project. Otherwise, the DCM project manages the entity again after the next deployment.

Syntax

SYSTEM$UNMANAGE_ENTITY_FROM_DCM_PROJECT(
  '<project_name>' ,
  '<object_type>' ,
  '<object_name>' )

Parameters

NameRequiredDescription
'project_name'requiredName of the DCM project that currently manages the entity, for example my_db.my_schema.my_project.
'object_type'requiredType of the entity to unmanage, written with spaces between words, for example 'DYNAMIC TABLE'. For the entity types that DCM Projects supports, see Supported entities in DCM Projects.
'object_name'requiredName of the entity to unmanage, for example my_db.my_schema.my_dynamic_table.

Returns

Returns the number of entities that were unmanaged. If the DCM project doesn’t manage the entity, for example because the entity was already unmanaged, the function returns 0. If the entity doesn’t exist, the function returns an error.

Usage notes

Access control requirements

A role used to execute this operation must have the following privileges at a minimum: Privilege | Object | Notes OWNERSHIP | DCM project | MONITOR or READ on the DCM project isn’t sufficient. Any | Entity to unmanage | The entity must be visible to the role. For example, SELECT on a table is sufficient. OWNERSHIP of the entity isn’t required. Operating on an object in a schema requires at least one privilege on the parent database and at least one privilege on the parent schema. For instructions on creating a custom role with a specified set of privileges, see Creating custom roles. For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.

See also

Referenced by