I have a table with a column witha 30 char array. This field contains UP TO 15 2 char codes stored in it. I also have a SSN and a certnum field for keys. I need to break up this one to many relationship into another table. Has anyone pased a filed and then done an insert into another table for each value in that field. I dont think I can do a for loop??? I can take the length of the field and divide by two to determine how many codes are in the field ie the number of inserts I need. I was just hoping someone had a snippet of code which does something like this. I could do it in vb pretty easy and that is an option although we would like to automate this process in a DTS Job, and have it all in TSQL/SProc...
Thanks
Thanks