create procedure proc_view_cloumns ( @tableName nvarchar(50) ) AS select b.name,a.value,c.name, b.max_length from sys.extended_properties a, sys.columns b,sys.types c where a.major_id = OBJECT_ID(@tableName) and a.major_id = b.object_id and a.minor_id = b.column_id and b.system_type_id = c.system_type_id;