This stored procedure was designed to scan all your character based columns in a particular database and show the minimum, maximum and average data length. As well as give an efficiency rating of the data stored.
Input: None
Output: Table name,
Column name,
Defined datatype and length,
Average length of data for that column,
Minimum length of data for that column,
Maximum length of data for that column,
Efficiency Rating for that column.
Side effects: None
·Large database can take upwards of a minute to return data.