If you have a bunch of columns you could do this....
declare @table as varchar(50) set @table='YourTable' declare @test as varchar(5000) select @test= COALESCE(@test + ', ', '') + [Name] from sys.columns where object_id like ( select Object_id from sys.tables where name=@table )