I am creating a computed column across fields of which some are potentially null.
The problem is that if any of those fields is null, the entire computed column will
From SQL Server 2012 this is all much easier with the CONCAT function.
It treats NULL as empty string
NULL
DECLARE @Column1 VARCHAR(50) = 'Foo', @Column2 VARCHAR(50) = NULL, @Column3 VARCHAR(50) = 'Bar'; SELECT CONCAT(@Column1,@Column2,@Column3); /*Returns FooBar*/