I have this problem where in my database I get lots of empty spaces after my text,
In my email I have "something@mail.com+_________________________________________" lots of spaces
My email row is nchar(255)
and that is happening to all of my tables
Can anyone explain to me why is this happening and how to fix it?
CHARandNCHARwill automatically right-pad a string with spaces to meet the defined length. UseNVARCHAR(255)instead ofNCHAR(255).