SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Load XML Data from various resources


Load XML Data from various resources

Author
Message
Joe Contreras-290946
Joe Contreras-290946
Right there with Babe
Right there with Babe (769 reputation)Right there with Babe (769 reputation)Right there with Babe (769 reputation)Right there with Babe (769 reputation)Right there with Babe (769 reputation)Right there with Babe (769 reputation)Right there with Babe (769 reputation)Right there with Babe (769 reputation)

Group: General Forum Members
Points: 769 Visits: 206
Hi,

I'd like to know how I can do the following:

1. Receiving various XML files from about 50 companies
2. Each XML file will contain the same data, however the "field nodes" in the XML file are different, for example, one XML can be something like this

XML File1



XML File2


3. Load those different files into the same table or tables

I know I can use bulkcopy using either a C# or SSIS, however the design issue is how can I design this and determine that the field nodes in the different XML files contain the same type of data?

Any thoughts or ideas or links would be great.
Unsure

Thanks,
Joe Contreras-290946
Joe Contreras-290946
Right there with Babe
Right there with Babe (769 reputation)Right there with Babe (769 reputation)Right there with Babe (769 reputation)Right there with Babe (769 reputation)Right there with Babe (769 reputation)Right there with Babe (769 reputation)Right there with Babe (769 reputation)Right there with Babe (769 reputation)

Group: General Forum Members
Points: 769 Visits: 206
The fields names appear in the XML files like so:

XML File 1
FirstName - John

XML File 2
FName

Sorry that these fieldnames didn't appear in my original message.

Thanks,
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum







































































































































































SQLServerCentral


Search