The topic describes the DF189 T-SQL code analysis rule.
BEST PRACTICE
Explicit length is not specified for varying-length character data type.
It is recommended to explicitly specify data length to prevent data truncation errors.
CREATE TABLE dbo.DemoTable(code VARCHAR NOT NULL)
GO
CREATE TABLE dbo.DemoTable(code VARCHAR(128) NOT NULL)
GO