web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Extract Entity and Attributes using SQL Server Scripts

(0) ShareShare
ReportReport
Posted on by 247

I have a requirement to extract Dynamics CRM Entities and its attributes using SQL Script from SQL Server Database. Is there any way to do this using SQL Script with SQL Server Database.

Thanks

AR

I have the same question (0)
  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at

    Hello,

    Not sure why you want to do that but you can do that similar to other SQL table depending on which version you are using for example based on the tag it seems you are using CRM 2011, in CRM 2011 there used be two tables for entities,

    1. Your entity for example Account

    2. Entity+extentionbase for example Accountextentionbase

    so depending on your entity name you can look for CRM SQL db and queries these entity to get attributes details.

    You can refer : softchief.com/.../

  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Hello,

    You can extract these details with the help of XrmToolBox plugin Metadata Browser.

    carldesouza.com/.../

    For SQL Script ->

    Go to your organisation_mscrm database->tables->Metadataschema.entity (you will find this at the last)

    In this table u will get all the list of entities. Similar Metadataschema.Attribute table for the list of attributes.

    Please mark my answer verified if i were helpful

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 83 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans