Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7516723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:13:26+00:00 2026-05-30T01:13:26+00:00

I am looking for some probable choices to efficiently populate a relational SQL Server

  • 0

I am looking for some probable choices to efficiently populate a relational SQL Server database from xml files. So basically I visualize a three step process to accomplish it;

  1. Read XML from a public url
  2. populate sql db which is similar to xml schema
  3. populate the target relational sql db.

I am not sure if mapping the xml directly to the target db is achieveable easily ie. skipping step 2, but my inclination is that it would make the process a little bit complicated.

The xml reading part from a public url would be something like http://www.abc.com/xmlfeed.xml which would require a nightly routine to make this file available to be processed. Some thing like windows task schedular..or any better way?

I have only two days to make this work, so I would prefer anything that is quick to implement with less coding effort. However I do need this method to be maintainable in the future, as I would be receiving the new xml data every day with the same old schema. In case the schema changes a little bit, I would like the process of tweaking the routine to be hassle free.

I thought that migration of legacy data to SQL Server would be a few minutes task due to the frequency of such requirement, but to my surprise there are very little discussion/comparisions on the internet for different xml migration techniques.I am really confused to decide on the route that I should take, a pure SQL Server solution like SSIS or something like xml parsers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T01:13:27+00:00Added an answer on May 30, 2026 at 1:13 am

    As I read your post through, my very first idea was SSIS, and at the end you wrote it yourself. Especially if you are familiar with it, I recommend it. You can implement such a solution in two days.

    After you implemented the ETL process you can create an SQL Server Agent job which will schedule your SSIS package to run at the time you want it to run. It supports running packages from SQL Server or File System.

    EDIT

    According to your example. It’s fully possibe to implement such a solution in SSIS. I give some screenshot about a sample project which process your XML sturcture.

    1. First image shows that the SSIS package consists of 3 control flow steps. Each of them is a Data Flow Task. First it process the manufacturers then the models then cars.

      Sample SSIS package

    2. I implemented only the manufacturers part. This is shown in image #2 and #3. (They overlap a little bit.) In #2 I read the XML content (XML Source task), aggregate it (Aggregation task) by manufacturer. Then I sort them also by manufacturer name (Sort task). On the other side I read the manufacturers existing in SQL database (through OLE DB Source task), then this will be also sorted.

      Process manufacturers part 1

    3. After that these two sources are merged (Merge join task) by a join operation (similar as in SQL). In this case this is a FULL OUTER JOIN so you can figure out which manufacturer is new and which one should be deleted. I split the records into two parts according the previous two conditions (new, deleted).

      Process manufacturers part 2

    4. Finally I add the new manufacturers through an OLE DB Destination task, and delete the missing manufacturers with the help of an OLE DB Command task. In the latter case I assume there’s a stored procedure (called DeleteManufacturer(@ManufacturerName)) in SQL which will delete the manufacturer and all attached models and cars. (Cascade Delete)

    The other two data flow tasks should be implemented in the same way. If you should uptade the matching records, the Conditional Split task must have three conditions and a new tree bunch attached to this third condition. Here a new OLE DB Command can be used with an UPDATE statement.

    As I wrote previously if you are ready with the package, an SQL Server Agent job should be created, which will run your package at night (or at the time you wish).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently building a web app that will take some info from a database
I'm looking for some advice from the community about constructing an online store based
I'm looking to make a website that will probably get some heavy, repetitive traffic.
Looking through some code I came across the following code trTuDocPackTypdBd.update(TrTuDocPackTypeDto.class.cast(packDto)); and I'd like
Looking for some direction here as I'm running into some migration problems. We have
Looking for some help with a Labview data collection program. If I could collect
Looking for some sample code (C#) for a simple thread pool implementation. I found
Looking at some code I'm maintaining in System Verilog I see some signals that
Looking for some advice on the best way to implement localization along with client
Looking for some guidance on a WCF service I’m prototyping. I have a WCF

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.