April 12, 2010 at 5:11 pm
Hi Friends
I got a user requirement like below.
user wants to know how many address columns have got spaces.
Example:
POBOX00-------Here 0 means spaces.
I know how to trim spaces,dont know how to identify spaces in column.
Any ideas please?
Thanks
April 12, 2010 at 5:42 pm
April 12, 2010 at 5:55 pm
Thanks for quick response.
this code is very useful to me ..
April 12, 2010 at 6:07 pm
anitha also watch your data types...if the column is CHAR or NCHAR, it is padded on the right with spaces to the full size of the column definition: insert 'anitha' in a CHAR(50), and it is 6 characters + 44 spaces. you can't remove the spaces either.
if the column is a varchar, then there's no padding of spaces.
Lowell
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply