I have designed ssis package and
Now I am able to move Individual data to Individual table.
And Address data to Address table during the import process.
I have a primary key in my Individual table (id_pk) which is auto-generated:
I am having trouble moving the main id_pk from individual into address table.
I have designed a update query but its taking too long to update in to address table.
... or you can take a look at the query and look at the execution plan. Make sure that there is an index on the address table on uniqueid and that both formats are the same (integer?). But the loading of the table will take longer.
You can post your excecution plan with help of Brent Ozar.
Where is the remaining xml portion? I seem to remember you asking another question about generating xml from sql. But now you want to import it back in?
Can you please explain the whole story. The answers you will be provide when your questions are asked in pieces will vastly differ when asked as a requirement story.
If you are generating from sql to xml then turning around and re-importing it to SQL seems a bit unusual and might not be the best approach. Can you convince us otherwise? Unless this is some school stuff?
Yes this is basically some school stuff.
I have been given different tasks to learn how to import xml into sql and how to export full sql data into XML. This question is different from my previous question and not linked to it directly.
And yes basically XML files I have are very large. I just posted here a sample from it that data looks like this in it.