SSC-FDM-0012

Constraint Name in some constraints is not Supported.

Description

This message is added when a constraint is of type Null, Not Null, or default and was defined with a name. Snowflake does not support the name in those constraints. For that, SnowConvert will remove it and add the comment.

Example Code

Input Code

IN -> SqlServer_01.sql
CREATE TABLE TABLE1 ( 
COL1 VARCHAR (10) CONSTRAINT constraintName DEFAULT ('0') NOT NULL 
);

Output Code

OUT -> SqlServer_01.sql
CREATE OR REPLACE TABLE T1 (
 COL1 VARCHAR(10) DEFAULT ('0') /*** SSC-FDM-0012 - CONSTRAINT NAME 'constraintName' IN DEFAULT EXPRESSION CONSTRAINT IS NOT SUPPORTED IN SNOWFLAKE ***/
 )
 COMMENT = '{ "origin": "sf_sc", "name": "snowconvert", "version": {  "major": 0,  "minor": 0,  "patch": "0" }, "attributes": {  "component": "transact",  "convertedOn": "05/15/2025",  "domain": "no-domain-provided" }}'
;

Recommendations

  • No end-user action is required.

  • If you need more support, you can email us at [email protected]

Last updated