Viewing 2 posts - 1 through 2 (of 2 total)
BTW, I remove space and newline from @n
hong1tao (7/23/2008)
DECLARE @x xml,
@n varchar(1000);
SET @n = N' ';
SET @x = CAST(@n AS xml);
SELECT 'varchar length = ',...
July 23, 2008 at 2:48 pm
#847386
change sql as below
SELECT 'varchar length = ', DATALENGTH(@n)
UNION
SELECT 'xml length = ', DATALENGTH(@x);
result is...
July 23, 2008 at 12:35 am
#846839