MSCEWI4062

Warning Precision In Convert Date And Time Zone.

Severity

Low

Description

This EWI is added when there are Dates or Time zones in which a precision has been included. This occurs when there is an Alter Table Statement with default column constraint and it is necessary to include it in the Create Table column.

Code Example

Input Code:

CREATE TABLE table1
(
  col1 integer,
  col2 varchar collate Latin1_General_CS,
  col3 DATETIME
);

ALTER TABLE table1
ADD 
    CONSTRAINT col3_constraint DEFAULT getdate() FOR col3;

Output Code:

Recommendations

  • No additional user actions are required.

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

Last updated