Skip to main content

Notifications

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 327

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
    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
    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 the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans