I want to split each name for individual columns
create table split_test(value integer,Allnames varchar(40))
insert into split_test values(1,\'Vinoth,Kumar,Raja,
using this example you can get an idea.
declare @str varchar(max)
set @str = 'Hello world'
declare @separator varchar(max)
set @separator = ' '
declare @Splited table(id int identity(1,1), item varchar(max))
set @str = REPLACE(@str,@separator,'''),(''')
set @str = 'select * from (values('''+@str+''')) as V(A)'
insert into @Splited
exec(@str)
select * from @Splited