Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Extract Entity and Attributes using SQL Server Scripts

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

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Extract Entity and Attributes using SQL Server Scripts

    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

  • Suggested answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: Extract Entity and Attributes using SQL Server Scripts

    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/.../

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans