I am newish to SQL to please excuse any ignorance. I have a table, called 'temp' that contains one Field, (called Field1) with rows and rows of long comma seperated strings, thus:
Temp table
Field1
ABC123,1,Z,some text
ABC456,1,q,some text
ABC789,1,r,some text
ABC111,1,y,some text
I then have a another table, called Detail, with 4 headings. So how do I insert the above from the temp table to the temp table to look like this:
Detail Table
Field1 Field 2 Field 3 Field 4
ABC123 1 Z some text
ABC456 1 q some text
ABC789 1 r some text
ABC111 1 y some text
I will then be using reporting reporting services to report on the detail table. Do I need to call a function? I've been reading up and some people are saying an XML function is better? All my other bits of code is in a SP so how do I call it from here?
Thank you in advance for any help.
Regards,
Michael