I need to find a way to retrieve the limit itself, not the longest data entry stored under that column, which is what most of my searching has turned up.
For instance, if I executed the following statement:
ALTER TABLE TestTable Add TestColumn VarChar(500) is there a way to construct a selector to return the character limit (500) itself?
Whenever I use a selector for the data_type from Information_schecma.columns (below), it just returns "varchar", without returning how many characters go with it.
SELECT DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'TestTable' AND COLUMN_NAME = 'TestColumn'
CHARACTER_MAXIMUM_LENGTHfield with theDATA_TYPE