Hi there,
When you run a T-SQL statement SQL returns you the columns value with maximum possible value of that column. That is, if you are having a column of varchar(255) having data 'ABCD'.
Still SQL will return you a string of varchar(255).
For formatting of data you can use RTRIM(myColumn) or some other string functions. But these will return the formatted data only in the front-end other that Query Analyzer.
Let us know what data value you have and what you want sql to return.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.