Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Dynamics CRM 2013 OnPremise - What is the Entity table [dbo].[attachment]

(0) ShareShare
ReportReport
Posted on by 317

Hello everybody, 

recently I discovered this entity on a CRM 2013 On-Premise database.

the entity Table Name is [dbo].[attachment], what is this table?  is it linked to annotationbase or activitymimeattachment ? 

thanks in advance 

*This post is locked for comments

  • Suggested answer
    Kalpavruksh D365 CoE Profile Picture
    Kalpavruksh D365 CoE 2,545 on at
    RE: Dynamics CRM 2013 OnPremise - What is the Entity table [dbo].[attachment]

    Hi,

    ActivityMimeAttachment table does not store the file contents. For all emails, the attached file contents are stored into the Attachment table. You can see the attachmentid (Foreign Key of Attachment table) in the metadata of ActivityMimeAttachment entity : http://msdn.microsoft.com/en-us/library/gg327995.aspx

    All other attachments except Email Attachments are stored in annotation entity (AnnotationBase DB table) and the file contents are uploaded into the documentbody string attribute in Base64 string encoded format.

    You may also refer: http://msdn.microsoft.com/en-us/library/gg334587.aspx

  • Suggested answer
    Jarrod Williams Profile Picture
    Jarrod Williams 1,747 on at
    RE: Dynamics CRM 2013 OnPremise - What is the Entity table [dbo].[attachment]

    Judging based on name, columns and a couple of quick queries, it is an out of the box table that stores meta information on file attachments for messages that isn't stored for a typical file record in the annotationbase record.  

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,489 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans