Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 184791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:21:18+00:00 2026-05-11T15:21:18+00:00

I have at least 100 xml files each about 300 MB with email messages

  • 0

I have at least 100 xml files each about 300 MB with email messages basically in the format listed below.

Now my question is, how do I get this data into say SQL Sever database so that I can perform query on this data. My queries would be along the lines of: Has a certain person sent an email to another certain person on a given period with certain keywords on subject/body etc.

Here is what I have tried:

1) Loading each XML file into XML data type field into SQL Server. With this approach I could not come up with the Xpath(?) queries to do what I need. Is it even possible to do this in Xpath?

2) Loading each file into .NET DataSet using ReadXML and ReadSchema. This seems to Load fine and it seems to create the right number of DataTable with the foreign keys etc but this would mean I will have to create 100 sets of table on the database. Somehow join all into one single table then perform the query.

Let me know if you guys have any other suggestions.

Thanks.

<Message> <MsgID>4651286700000CAA00EF00010000</MsgID> <MsgTime>2007-05-21-01.04.39.000000</MsgTime> <MsgTimeUTC>1179723879</MsgTimeUTC> <MsgLang>CODE 1252</MsgLang> <Sender>     <UserInfo>         <FirstName>X</FirstName>         <LastName>Y</LastName>         <AccountName>121212</AccountName>         <CorporateEmailAddress>someone@somewhere.com</CorporateEmailAddress>     </UserInfo> </Sender> <Recipient DeliveryType = ' '>     <UserInfo>         <FirstName>A</FirstName>         <LastName>B</LastName>         <FirmNumber>7593</FirmNumber>         <AccountName>STRATEGIC AS</AccountName>         <AccountNumber>604806</AccountNumber>         <CorporateEmailAddress>A@B.COM</CorporateEmailAddress>     </UserInfo> </Recipient> <Subject>     Please review the following </Subject> <Attachment>     <FileName>37715772.htm</FileName>     <FileID>503242486522279_37715772.htm</FileID>     <FileSize>31175</FileSize> </Attachment> <MsgBody>     This is the message Body </MsgBody> 

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T15:21:18+00:00Added an answer on May 11, 2026 at 3:21 pm

    Use the Xml Bulk Load component

    http://support.microsoft.com/kb/316005

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read at least 100 posts about .htaccess and cant seem to get
We have lot of configuration files used in our application. Atleast 100 different xml
Lets say i have at least two lua script files. test1.lua test2.lua both define
I have spent at least 2 weeks now trying to find out how to
I have a set of XML files that I am processing with an XSL
I have a table (rowID, name, familyName) with at least 100.000 rows (SQLite). I
I have a xml file as follows <Moves> <Move name=left> <Coord X=100 Y=100/> <Coord
i have (at least) two addins installed in Visual Studio (2010 (Professional)). i would
I have a winforms datagridview that seems to always have at least one row
I need to find all patrons that have at least 1 circulation record. Here's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.