Wrox Programmer Forums
|
BOOK: Professional ADO.NET 2: Programming with SQL Server 2005, Oracle, MySQL ISBN: 0-7645-8437-5
This is the forum to discuss the Wrox book Professional ADO.NET 2: Programming with SQL Server 2005, Oracle, and MySQL by Wallace B. McClure, Gregory A. Beamer, John J. Croft IV, J. Ambrose Little, Bill Ryan, Phil Winstanley, David Yack, Jeremy Zongker; ISBN: 9780764584374
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ADO.NET 2: Programming with SQL Server 2005, Oracle, MySQL ISBN: 0-7645-8437-5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 7th, 2010, 05:54 PM
Registered User
 
Join Date: Aug 2007
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Default Import XML using SSIS

Hi,

I need a help here....

I need to import xml file using SSIS package (attached sample xml file).
Each of the banking centers has multiple users. and the data should split here into 2 tables (sql server is the database)
banking centers should go to table1 and users to table2.
I can read a simple XML file with 3 columns (Fst_name, Lst_name, Age) and load onto one table. but here it has to go into two tables.
this requirement is very urgent, please help me out on this.

below is the sample xml file

<BankingCenters>
<BankingCenter>
<BankingCenterID>14213</BankingCenterID>
<BankingCenterName>West End</BankingCenterName>
<AddressLine1>880 Main Street</AddressLine1>
<AddressLine2>80581</AddressLine2>
<City>Waltham</City>
<State>MA</State>
<ZipCode>02451</ZipCode>
<AssociatesInfo>
<AssociateInfo>
<FRST_NM>ANA I</FRST_NM>
<LST_NM>Kary</LST_NM>
</AssociateInfo>
<AssociateInfo>
<FRST_NM>ANA II</FRST_NM>
<LST_NM>Lou</LST_NM>
</AssociateInfo>
</AssociatesInfo>
</BankingCenter>
<BankingCenter>
<BankingCenterID>14210</BankingCenterID>
<BankingCenterName>East End</BankingCenterName>
<AddressLine1>4212 wood dr</AddressLine1>
<AddressLine2></AddressLine2>
<City>lakemary</City>
<State>FL</State>
<ZipCode>32709</ZipCode>
<AssociatesInfo>
<AssociateInfo>
<FRST_NM>Andy</FRST_NM>
<LST_NM>Miller</LST_NM>
</AssociateInfo>
<AssociateInfo>
<FRST_NM>Joe</FRST_NM>
<LST_NM>Robert</LST_NM>
</AssociateInfo>
</AssociatesInfo>
</BankingCenter>
</BankingCenters>

thanks
Arun





Similar Threads
Thread Thread Starter Forum Replies Last Post
SSIS XML as a destination? GethWho BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 5 February 3rd, 2016 08:22 AM
SSIS :: Reading from XML source into Recordset grrajoo BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 1 January 12th, 2016 07:48 AM
How to import XML into SQL Server dbellavi XML 1 February 26th, 2008 06:02 AM
Import using SSIS trigger not fire on that table chandrapal SQL Server 2000 0 October 6th, 2007 11:21 AM
import XML Form Into Template drrocket0302 Infopath 0 May 24th, 2007 09:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.