I need to trim a field in SQL Server table, when i use a select statement.
The requirement is that this field populates the dropdownlist in .net page. The maximum length that the data needs to display is 20. If data length is more than that, then it should be cut to 20, if less then the data length should be the length of string.
How do i do this?