So what exactly is the difference between the LEN and DATALENGTH functions in SQL Server? They sound similar but they're actually used for two different purposes.
- The LEN function tells you how many characters are in a string but will exclude any trailing blanks.
- The DATALENGTH function tells you how many bytes are used to represent an expression.
0 comments:
Post a Comment