May 1, 2007 at 5:33 am
May 1, 2007 at 7:09 am
Hi Jules
SQL BOL: Returns the number of characters, rather than the number of bytes, of the given string expression, excluding trailing blanks.
In your exmaple space appeared to be last character in the string expression. Below example is self expainatory.
select len(' a') = 2
select
len('a ') = 1
select
len (' ') = 0
use datalength instaed
select
datalength(' a') =2
select
datalength('a ') = 2
select
datalength (' ') =1
Regards
Shrikant Kulkarni
May 1, 2007 at 3:45 pm
May 2, 2007 at 12:21 am
May 2, 2007 at 2:02 am
That is correct.
N'somestring' denotes that this is a unicode string
/Kenneth
May 7, 2007 at 10:47 am
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply