Code
declare @FirstChar varchar(50)
declare @FirstPoint int
declare @lenth int
begin
declare @AllChar varchar(100)
set @AllChar='11,444,93,2,1'
set @lenth=len(@AllChar)
create table #Temp_String
(FID int identity,
Content varchar(50))
set @FirstPoint=charindex( ',',@AllChar)
while( @FirstPoint> 0)
begin
set @FirstChar=substring(@AllChar,0,@FirstPoint)
insert into #Temp_String(Content) values (@FirstChar)
set @AllChar=substring(@AllChar,@FirstPoint+1,@lenth)
set @FirstPoint=charindex( ',',@AllChar)
print @AllChar
end
insert into #Temp_String(Content) values (@AllChar)
select Content from #Temp_String
end
drop table #Temp_String