Xml File Import - Relational Data

Hi,

I have played around with SSIS in addition to reading an SSIS book front to back, but I am still a little confused as to how to import an Xml file with relational data.

The Xml file is structured as follows:


Answer this question

Xml File Import - Relational Data

  • kthiagar

    have you tried using the t-sql openxml statement with the execute sql task


  • prof.Scuba

    Duane Douglas wrote:
    have you tried using the t-sql openxml statement with the execute sql task


    Thanks for the suggestion, it had crossed my mind but then it seemed to contradict the main point of SSIS, that being making it easy to import data with little coding.

    I have since discovered that the Xml Source task builds up the relationships internally and adds automatically generated PKs/FKs, so I should be able to use those to map the data.

  • Xml File Import - Relational Data