Is there an option we can set in SQL Server so blank characters are not appended to character strings to fill the field?
Example: If we save a part number "1234" into a field that can hold 8 characters, SQL saves it with 4 spaces at the end, ie "1234 ". When we read it back we have to trim those spaces off before we can compare it to our original part number "1234" and get a match.
Is there an option in SQL Server where it will not add the four spaces?
Thanks,
Aaron
Example: If we save a part number "1234" into a field that can hold 8 characters, SQL saves it with 4 spaces at the end, ie "1234 ". When we read it back we have to trim those spaces off before we can compare it to our original part number "1234" and get a match.
Is there an option in SQL Server where it will not add the four spaces?
Thanks,
Aaron