Link to home
Start Free TrialLog in
Avatar of lrr81765
lrr81765

asked on

SQL XML Import

Given a table:
Zipcode (varchar(5))
Distance (integer)

and an XML file
<?xml version="1.0" encoding="utf-8" ?>
- <ArrayOfZipCodeDistances xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://skats.net/services/literalTypes">
- <ZipCodeDistances>
  <ZipCode>45419</ZipCode>
  <Distance>2</Distance>
  </ZipCodeDistances>
- <ZipCodeDistances>
  <ZipCode>45440</ZipCode>
  <Distance>3</Distance>
</ArrayOfZipCodeDistances >

How do you import these into the table?

ASKER CERTIFIED SOLUTION
Avatar of namasi_navaretnam
namasi_navaretnam
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of arbert
arbert

You can also download and install XMLservices from microsoft's website and use the xml connection in DTS just like any other data source....

Brett