Question : Insert multiple rows into one field

I am running this query
SELECT CONVERT(VARCHAR(10),CardOTBID) + ' ' + CONVERT(VARCHAR(20),CurrentBalance)
  FROM CardOTB_T_EC
 WHERE CurrentBalance > @Amount

I want the results to go into one field so I can insert them into one row of a table.
Does anyone know how to do this?

Answer : Insert multiple rows into one field

declare @res varchar(8000)
SELECT @Res = COALESCE(@res+',' , '' )+ CONVERT(VARCHAR(10),CardOTBID) + ' ' + CONVERT(VARCHAR(20),CurrentBalance)
  FROM CardOTB_T_EC
 WHERE CurrentBalance > @Amount

---now you can insert @res into the other table
Random Solutions  
 
programming4us programming4us