Viewing 2 posts - 1 through 2 (of 2 total)
Just to clarify, this doesn't seem to be in all versions of XP. If you're not on XP Professional (is anyone other than me stuck with XP Home?) try using...
June 14, 2010 at 8:41 pm
#1180177
Yes, COALESCE seems to me to be a safer option. Try this:
DECLARE @vcOne varchar(10)
DECLARE @vcTwo varchar(20)
SET @vcTwo = '01234567890123456789'
SELECT ISNULL(@vcOne,@vcTwo)-- will truncate to 10
SELECT COALESCE(@vcOne,@vcTwo)-- won't
July 27, 2009 at 6:09 pm
#1030793