DATALENGTH function returns string length in bytes:
DECLARE @str VARCHAR(10) SET @str= ' ' PRINT LEN(@str) PRINT DATALENGTH(@str)
Result:
0 6
well written query. I tried it to get the length of a string and it worked well for me. Thank you. sap support packs
well written query. I tried it to get the length of a string and it worked well for me. Thank you.
ВідповістиВидалитиsap support packs