Quantcast
Channel: Answers for "MAX & Trimming column data"
Browsing all 8 articles
Browse latest View live

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 Article



Answer 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 Article

Answer by Scot Hauder 1

You may have some other whitespace in there besides spaces

View Article

Answer 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

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 Article


Answer 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 Article

Answer by Scot Hauder 1

You may have some other whitespace in there besides spaces

View Article

Answer 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

Browsing all 8 articles
Browse latest View live


Latest Images