Length
of VARCHAR fields the function LEN(varcharfield) is useful.
Length of TEXT fields the function is DATALENGTH(textfield).
Len will not work for text field.
Example:
SELECT LEN(yourvarcharfield) AS VarcharFieldSizeSELECT DATALENGTH(yourtextfield) AS TEXTFieldSize
No comments:
Post a Comment