Ryan (ry********@hotmail.com) writes:
Or DataLength
There are a couple of differences between len() and datalength()
o len() gives the length in charcters, datalength() in bytes (which
matters for nchar/nvarchar).
o len() excludes trailing blanks, datalength does not.
o datalength() is the only one to work on text/ntext/image.
--
Erland Sommarskog, SQL Server MVP,
es****@sommarskog.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp