Hi @SuperCoder,
It looks like COL_LENGTH() function table parameter needs schema prefix for the table name.
Check it out below.
USE AdventureWorks2022;
GO
-- not working
SELECT COLUMN_NAME, COL_LENGTH ('Person', COLUMN_NAME) AS 'Column Length'
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'Person';
-- working
SELECT COLUMN_NAME, COL_LENGTH ('Person.Person', COLUMN_NAME) AS 'Column Length'
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'Person';