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

  • SEARCH
  • Home
  • 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 817675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T02:01:48+00:00 2026-05-15T02:01:48+00:00

I have an application which will start a program flow with the arrival of

  • 0

I have an application which will start a program flow with the arrival of an email. I will need to link the email to my application, which I’m going to do via a custom property on the message.

I will then need to store the email for reference forever. As Exchange 2010 supports only 10Gb and 100,000 items in a mailbox (without using PST files), I need to get the message into a more permanent store, SQL.

I’m running SQL 2005 and I want to store the email in there but not as an image, so I can search it if I need to. As I am using Exchange Web Services to get the email I already have the full XML for the message. I figure storing it in a XML field which has the Message XML schema associated to it (to help with performance) should give me the best solution.

My issue is getting the XML schema for a Message. I can’t seem to find it anywhere and there doesn’t seem to be much online content for putting messages into SQL.

Am I going about this all wrong or is there a better solution for me? The mailbox is forecast to receive over 600k emails a year.

Any help or assistance will be happily received.

Thanks,
Mike

  • 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. Editorial Team
    Editorial Team
    2026-05-15T02:01:49+00:00Added an answer on May 15, 2026 at 2:01 am

    I used XMLSpy to generate a schema based on the XML file. It won’t be perfect but it works for me.

    XMLSpy generated more than the below but it was too restrictive and also SQL didn’t validate it. So I took out some of the extras and kept it nice and simple.

    Here is the MessageType XML Schema it generated;

    <?xml version="1.0" encoding="UTF-8"?>
    <!--W3C Schema generated by XMLSpy v2010 rel. 3 (x64) (http://www.altova.com)-->
    <xs:schema xmlns:n1="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <xs:import namespace="http://schemas.microsoft.com/exchange/services/2006/types" schemaLocation="messagetype1.xsd"/>
        <xs:element name="MessageType">
            <xs:complexType>
                <xs:sequence>
                    <xs:element ref="n1:ItemId"/>
                    <xs:element ref="n1:ParentFolderId"/>
                    <xs:element ref="n1:ItemClass"/>
                    <xs:element ref="n1:Subject"/>
                    <xs:element ref="n1:Sensitivity"/>
                    <xs:element ref="n1:DateTimeReceived"/>
                    <xs:element ref="n1:Size"/>
                    <xs:element ref="n1:Importance"/>
                    <xs:element ref="n1:IsSubmitted"/>
                    <xs:element ref="n1:IsDraft"/>
                    <xs:element ref="n1:IsFromMe"/>
                    <xs:element ref="n1:IsResend"/>
                    <xs:element ref="n1:IsUnmodified"/>
                    <xs:element ref="n1:DateTimeSent"/>
                    <xs:element ref="n1:DateTimeCreated"/>
                    <xs:element ref="n1:DisplayCc"/>
                    <xs:element ref="n1:DisplayTo"/>
                    <xs:element ref="n1:HasAttachments"/>
                    <xs:element ref="n1:Culture"/>
                    <xs:element ref="n1:EffectiveRights"/>
                    <xs:element ref="n1:LastModifiedName"/>
                    <xs:element ref="n1:LastModifiedTime"/>
                    <xs:element ref="n1:IsAssociated"/>
                    <xs:element ref="n1:WebClientReadFormQueryString"/>
                    <xs:element ref="n1:ConversationId"/>
                    <xs:element ref="n1:Sender"/>
                    <xs:element ref="n1:IsReadReceiptRequested"/>
                    <xs:element ref="n1:ConversationIndex"/>
                    <xs:element ref="n1:ConversationTopic"/>
                    <xs:element ref="n1:From"/>
                    <xs:element ref="n1:InternetMessageId"/>
                    <xs:element ref="n1:IsRead"/>
                    <xs:element ref="n1:ReceivedBy"/>
                    <xs:element ref="n1:ReceivedRepresenting"/>
                </xs:sequence>
            </xs:complexType>
        </xs:element>
    </xs:schema>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 438k
  • Answers 438k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Here's a quick-n-dirty, next-to-untested version that concatenates paths with a… May 15, 2026 at 4:28 pm
  • Editorial Team
    Editorial Team added an answer (I use Java/C++, and have used other OO languages, but… May 15, 2026 at 4:28 pm
  • Editorial Team
    Editorial Team added an answer Call parent::Save() in the subclass version of the method. See… May 15, 2026 at 4:28 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.