I wrote some T-SQL which will concatenate all my strings in one column together but nvarchar(max)
is not enough to store it.
Is there another way?
The code I'm trying to use is:
DECLARE @codes NVARCHAR(max)
SET @codes = ''
SELECT @codes = @codes + ',' + CONVERT(nvarchar,code)
FROM dbo.listing SELECT @codes