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

How can i transfer data from CRM to SQL Server?

(0) ShareShare
ReportReport
Posted on by

Hi 

I want to move data from CRM to SQL Server. How can I achieve that in best possible way ?

I have retrieved few tables using  Data Export on CRM but I get to see Id's not values(display name) of entities in SQL Server.

Any help will be appreciated.

Kind Regards,

Nikz

I have the same question (0)
  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Hi,

    Data Export service is best solution to achieve your requirement.

    You will have to export related entities as well and then perform join to get display name of lookup fields.

    Please mark my answer verified if i were helpful

  • Community Member Profile Picture
    on at

    I used Data Export Service only to retrieve my main table. I can see Option Set Metadata and  Attribute Metadata along with my main table.

    You are suggesting to import all Option Sets with main table to SQL Server and use Joins to retrieve actual data ?

    Thanks !

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

    Hi,

    Check stringmap table which has optionset display name stored in SQL.

    What I meant when I said related entities is for lookup field not for optionset.

    Please mark my answer verified if i were helpful

  • Suggested answer
    Mahadeo Matre Profile Picture
    17,021 on at

    To export option set values in online is difficult. There is a one tool in XrmToolbox called " PowerBI OptionSet Assistant", you can use this tool. This tool will create one custom entity and in that entity will have option set integer and text values, using Data export you can export this entity to SQL and then use joins to get option set values.

    For more details please check

    www.xrmtoolbox.com/.../

    365lyf.com/.../

  • Community Member Profile Picture
    on at

    I cannot see Stringmap table but I can see Global and OptionSetMedtadata in SQL Server.

    I have retrieved all the Option set values and created different lookup tables in SQL Server , which are Global and will be used at many places.

    Thanks!

  • Community Member Profile Picture
    on at

    How can I get stringmap with my other tables while export ? I can just see these tables.

    pastedimage1600861947405v1.png

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

    Hi,

    Use crm.OptionSetMetadata table to get the display name.

    Please mark my answer verified if i were helpful

  • Suggested answer
    ananeto Profile Picture
    36 on at

    I see you have already been able to get some info, but still, it may still be worth considering a third-party tool to save you time. Using a tool makes sense, especially if you have to repeat the transfer or keep the CRM in sync with the SQL server tables. Have a look at a case study on the sync between CRM and SQL.

  • Community Member Profile Picture
    on at

    Thanks !

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 73 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

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

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans