Answer by Jay Bonk
The MAX Keyword should not be affecting the trim at all. I tried it using the querybelow, and the first two columns inclue all the spaces, whereas the third column with the trim does not. Look for the...
View ArticleAnswer by Jack Corbett
Are you sure that the trailing spaces are not being trimmed? What do you get if you use the DATALENGTH function (this includes blanks)? Are you sure that the trailing data is blanks (spaces)? If it is...
View ArticleAnswer by dvroman
You may have some characters in the field that won't trim out. I use the following hex dump code to ensure the data.DECLARE @TestString VARCHAR(30), @Bin VARBINARY(255) SELECT @TestString =...
View ArticleAnswer by Jay Bonk
The MAX Keyword should not be affecting the trim at all. I tried it using the querybelow, and the first two columns inclue all the spaces, whereas the third column with the trim does not. Look for the...
View ArticleAnswer by Jack Corbett
Are you sure that the trailing spaces are not being trimmed? What do you get if you use the DATALENGTH function (this includes blanks)? Are you sure that the trailing data is blanks (spaces)? If it is...
View ArticleAnswer by dvroman
You may have some characters in the field that won't trim out. I use the following hex dump code to ensure the data.DECLARE @TestString VARCHAR(30), @Bin VARBINARY(255) SELECT @TestString =...
View Article