Example:DECLARE @comment VARCHAR(1000)SET @comment='2:42 1/29 On R.P.C resolved vendor was instructed on Friday failed to send 2020817 813 811 810 806 796 790 785 763 po 5480879 can4769753s dc 890 885 875 865 860 855 840 830 810 shipment not sent RESOLVED';WITH n(n) AS (SELECT 1 UNION ALL SELECT n+1 FROM n WHERE n<LEN(@comment)) SELECT SUBSTRING(@comment,n,7) FROM n WHERE PATINDEX('%[0-9][0-9][0-9][0-9][0-9][0-9][0-9]%',SUBSTRING(@comment,n,7))>0 OPTION (MAXRECURSION 1000)
Simply change the @comment to match your column name and CROSS JOIN the query with your table. The technique is similar to that described here: http://www.sqlteam.com/article/parsing-csv-values-into-multiple-rows