batman_k
asked on
XML data import
Hi All,
I have SQL 2008 Database called CRDB where is a table CDRDB.
Columns there are as follows:
IDNumber
MSISDN
RNORoute
Action
Please advice how to import (update table) XML data into Database with standard sql query.
I would like not to use third party toll to export XML data to different format and/or use a VBS script.
Please provide if possible a complete code. I would like to update an existing table records Thank you very much!
test.xml
...............
<?xml version="1.0" encoding="UTF-8" ?>
- <CRDBData>
<MessageName>CRDB Download</MessageName>
<IDNumber>20070122151500SM RTCALLDnld 001</IDNum ber>
<NumberOfMessages>2</Numbe rOfMessage s>
<Comments1>test delta downlaod</Comments1>
- <ActivatedNumbers>
- <ActivatedNumber>
<IDNumber>2007011717050027 8300075100 01</IDNumb er>
<MSISDN>99630007510</MSISD N>
<RNORoute>D101</RNORoute>
<Action>Return</Action>
</ActivatedNumber>
- <ActivatedNumber>
<IDNumber>2007011815250027 8300075320 01</IDNumb er>
<MSISDN>99630007532</MSISD N>
<RNORoute>D105</RNORoute>
<Action>Return</Action>
</ActivatedNumber>
</ActivatedNumbers>
</CRDBData>
I have SQL 2008 Database called CRDB where is a table CDRDB.
Columns there are as follows:
IDNumber
MSISDN
RNORoute
Action
Please advice how to import (update table) XML data into Database with standard sql query.
I would like not to use third party toll to export XML data to different format and/or use a VBS script.
Please provide if possible a complete code. I would like to update an existing table records Thank you very much!
test.xml
...............
<?xml version="1.0" encoding="UTF-8" ?>
- <CRDBData>
<MessageName>CRDB Download</MessageName>
<IDNumber>20070122151500SM
<NumberOfMessages>2</Numbe
<Comments1>test delta downlaod</Comments1>
- <ActivatedNumbers>
- <ActivatedNumber>
<IDNumber>2007011717050027
<MSISDN>99630007510</MSISD
<RNORoute>D101</RNORoute>
<Action>Return</Action>
</ActivatedNumber>
- <ActivatedNumber>
<IDNumber>2007011815250027
<MSISDN>99630007532</MSISD
<RNORoute>D105</RNORoute>
<Action>Return</Action>
</ActivatedNumber>
</ActivatedNumbers>
</CRDBData>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER