November 10, 2008 at 9:07 pm
I have always used len to determine the length of the field unknownly without knowning that LEN does not include trailing blanks. See BOL statement below:
Returns the number of characters, instead of the number of bytes, of the specified string expression, excluding trailing blanks
I guess my eyes never read the 3 words after the last comma. Go figure. For those out there that need to know the exact length, please use the DATALENGTH function.
November 11, 2008 at 11:24 am
Doh. I didn't even think about that. Thanks for the example.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply