I want to find the longest VARCHAR in a specific column of a SQL Server table.
VARCHAR
Here\'s an example:
ID = INT IDENTITY DESC = VARCHAR(5000) I
For IBM Db2 its LENGTH, not LEN:
SELECT MAX(LENGTH(Desc)) FROM table_name;