CREATE DCM PROJECT¶
Creates a new DCM project or replaces an existing DCM project.
- See also:
ALTER DCM PROJECT , DESCRIBE DCM PROJECT , DROP DCM PROJECT , EXECUTE DCM PROJECT , SHOW DCM PROJECTS , SHOW DEPLOYMENTS IN DCM PROJECT
Syntax¶
Required parameters¶
nameString that specifies the identifier (name) for the DCM project; must be unique for the schema in which the DCM project is created.
In addition, the identifier must start with an alphabetic character and cannot contain spaces or special characters unless the entire identifier string is enclosed in double quotes (for example,
"My object"). Identifiers enclosed in double quotes are also case-sensitive.For more information, see Identifier requirements.
Optional parameters¶
LOG_LEVEL = { DEBUG | INFO | WARN | ERROR }Specifies the severity level of messages that should be ingested and made available in the active event table. Messages at the specified level (and at more severe levels) are ingested.
For more information, see LOG_LEVEL and Setting levels for logging, metrics, and tracing.
COMMENT = 'string_literal'Specifies a comment for the DCM project.
Default: No value
Access control requirements¶
A role used to execute this operation must have the following privileges at a minimum:
Privilege |
Object |
|---|---|
CREATE DCM PROJECT |
Schema |
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.
Usage notes¶
The OR REPLACE and IF NOT EXISTS clauses are mutually exclusive. They can’t both be used in the same statement.
CREATE OR REPLACE <object> statements are atomic. That is, when an object is replaced, the old object is deleted and the new object is created in a single transaction.
Regarding metadata:
Attention
Customers should ensure that no personal data (other than for a User object), sensitive data, export-controlled data, or other regulated data is entered as metadata when using the Snowflake service. For more information, see Metadata fields in Snowflake.
Examples¶
Create a DCM project:
Create a DCM project with a comment: