raiserror 51050 'column data length exceeded max of 30.'
return -1
end
/* if all is ok,continue to add #rownames data */
select @chvexec = 'insert #rownames select distinct ' +
case @introwtype
when 1 then 'convert(varchar(255), '
else ''
end + rtrim(@chrrowhead) +