MSCEWI4052

Some functional table elements may have been reordered to a new Alter Table statement.

This EWI was added for an old version of SQL Server SnowConvert

Severity

Medium

Description

This EWI is added when different table elements do not have a functional equivalence in Snowflake or have a transformation planned. A new Alter Table statement is generated and commented out to avoid compilation problems.

Code Example

Input Code:

ALTER TABLE
    [Person].[EmailAddress]
ADD
    Dummy_Column VARCHAR(32),
    Another_Column datetime2 GENERATED ALWAYS AS ROW START HIDDEN NOT NULL DEFAULT SYSUTCDATETIME()
    CONSTRAINT [DF_EmailAddress_rowguid] DEFAULT 5 FOR [rowguid],
    

Output Code:

Recommendations

  • If there are no valid table elements in the default clause, the alter table will be totally commented out.

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

Last updated