SyntaxFix
Write A Post
Hire A Developer
Questions
You can use += to concatenate strings, for example:
declare @test nvarchar(max) set @test = '' select @test += name from names
if you select @test, it will give you all names concatenated