Quantcast
Channel: Answers for "Ltrim Rtrim not working"
Browsing latest articles
Browse All 6 View Live

Answer by Håkan Winther

You do not need to trim the expression Books online: > Returns the number of characters of> the specified string expression,> excluding trailing blanks. Try this code, it's basically the same...

View Article



Answer by Matt Whitfield

Ideally, you shouldn't be doing that sort of thing in a query. If you have a string with a null terminator as it's first character, that should have been sorted out before you inserted the record. That...

View Article

Answer by Phil Factor

Matt is right to warn about letting CHAR(0) anywhere near SQL Server. SQL Server doesn't really cope with a CHAR(0) very well Most string functions can't 'see' it, even though it won't terminate the...

View Article
Browsing latest articles
Browse All 6 View Live




Latest Images