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 ArticleAnswer 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 ArticleAnswer 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
More Pages to Explore .....