i got solution for this finally,!!!! im giving my solution for refrence
i took the check box list in string as comma separated value and pass it to stored procedure then i use dynamic query to insert this value as follow:
create table tblrmp ( id int identity (1,1), name varchar(20), subcat varchar(20) )declare @S varchar(20) set @S = '1,2,3,4,5' declare @sql varchar(max) while len(@S) > 0 begin print left(@S, charindex(',', @S+',')-1) set @sql='insert into tblrmp values(''abc'','+left(@S, charindex(',', @S+',')-1)+')' exec(@sql) set @S = stuff(@S, 1, charindex(',', @S+','), '') end
output: id name subcat 1 abc 1 2 abc 2 3 abc 3 4 abc 4 5 abc 5