Well, the miracle drug for me is sql....SELECT TOP 10 *FROM OPTION_STAGEWHERE LEN(Col1)-LEN(REPLACE(Col1,'|','')) = 15AND Col1 <> ' 'AND Col1 NOT LIKE 'EMPLID%'AND Col1 NOT LIKE '------------%'AND Col1 NOT LIKE 'SQL>%'AND Col1 NOT LIKE '2805434%'
Gets me the sanitized data in pipe delimited format...like.. -------------------------------------------------------------------------------- 100012|01|27|REG|01-JAN-02|01|2|G||||N|N|0|0|B 100012|10|412|REG|01-JAN-02|02|462|W|||W|N|N|0|0| 100012|10|1924|REG|01-JAN-02|02|249|O|HMO152|1|259|N|N|0|0|B 100012|10|1925|REG|01-JAN-02|02|250|O|HMO152|2|260|N|N|0|0|B 100012|10|1926|REG|01-JAN-02|02|251|O|HMO152|3|261|N|N|0|0|B 100012|10|1927|REG|01-JAN-02|02|252|O|HMO152|4|262|N|N|0|0|B 100012|10|2056|REG|01-JAN-02|02|381|O|HMO193|1|391|N|N|0|0|B 100012|10|2057|REG|01-JAN-02|02|382|O|HMO193|2|392|N|N|0|0|B 100012|10|2058|REG|01-JAN-02|02|383|O|HMO193|3|393|N|N|0|0|B 100012|10|2059|REG|01-JAN-02|02|384|O|HMO193|4|394|N|N|0|0|B
Just need to figure out how to load it from a table...I guess I could bcp it out and then back in...Maybe that's the best solution as compared to doing inserts...Brett8-)