Hi,
Please use the below scripts to reach your goal. hope, it may help you.
declare @finalvar varchar(100)
declare @initVar int,@increVar int
set @finalvar=''
set @initVar=0
set @increVar=1
create table #tmp_letters(id int identity(1,1),letters char(1))
insert into #tmp_letters
select...