1
I have the following code below.
declare @ac varchar(max) = '(' + replace('2398,2399,2405,2407,2523,3509,3510,3518,3523,3524,3601,3859,4713,4728,4735,47362398,2399,2405,2407,2523,3509,3510,3518,3523,3524,3601,3859,4713,4728,4735,4736',',','),(') + ')'
select @ac
declare
@Mylist table (number bigint)
Insert into @Mylist values @ac
select * from @Mylist
but for some reason this not going already tried a cast what could be ?