declare @lablesList varchar(max) = 'test1&test2'
set @lablesList = Replace(@lablesList, '&', ''',''')
set @lablesList = ''''+ @lablesList +''''
select @lablesList
declare @lablesList varchar(max) = 'test1&test2'
set @lablesList = Replace(@lablesList, '&', ''',''')
set @lablesList = ''''+ @lablesList +''''
select @lablesList