DECLARE @Concat varchar(MAX) SELECT @Concat = '' SELECT @Concat = @ConCat + IsNull(Field1, '') FROM Table1 SELECT @Concat
This returns a single value, which is the concatenation of each value of Field1. The IsNull part will mean that NULL values ββwill not ruin things. Of course, if you are not using SQL Server 2005 or later, you cannot use varchar (MAX), and the number of records you concatenate will become a faster problem.
Martw source share