Reading XML into SQL-Server

Hi at all !

Since the last days I'm writing on a small database application based on SQL-Server Express.
The database consists of multiple tables. One table for example has two coloumns ("ICAO-Code" and "Airport").

Now to the point. The application should be able to import Data from an XML-File. Let's show it:

<icaocode>EDDK</icaocode>
<airport>Koln/Bonn</airport>

The Innertext-Values from those nodes should be written in the coloumns from my Table in the SQL Server-Database.

How I can do this effectively (There are 100 and more nodes!)

Thank you very much...

P.S.: I would be very happy if you'll have a code-example......but if you have not an example, I won't be angry...



Answer this question

Reading XML into SQL-Server