You might also want to consider NULL values. In your example, if the column notes is null, then the resulting value will be NULL. If you want the null values ββto behave like empty strings (so that the answer comes out "SomeText"), use the IsNull function:
Select IsNull(Cast(notes as nvarchar(4000)),'') + 'SomeText' From NotesTable a
Chris Wuestefeld Sep 16 '08 at 21:09 2008-09-16 21:09
source share