Skip to main content

Notifications

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

  • Community Member Profile Picture
    on at
    RE: How can i transfer data from CRM to SQL Server?

    Thanks !

  • Suggested answer
    ananeto Profile Picture
    17 on at
    RE: How can i transfer data from CRM to SQL Server?

    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.

  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: How can i transfer data from CRM to SQL Server?

    Hi,

    Use crm.OptionSetMetadata table to get the display name.

    Please mark my answer verified if i were helpful

  • Community Member Profile Picture
    on at
    RE: How can i transfer data from CRM to SQL Server?

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

    pastedimage1600861947405v1.png

  • Community Member Profile Picture
    on at
    RE: How can i transfer data from CRM to SQL Server?

    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!

  • Suggested answer
    Mahadeo Matre Profile Picture
    17,021 on at
    RE: How can i transfer data from CRM to SQL Server?

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

  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: How can i transfer data from CRM to SQL Server?

    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

  • Community Member Profile Picture
    on at
    RE: How can i transfer data from CRM to SQL Server?

    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,981 Moderator on at
    RE: How can i transfer data from CRM to SQL Server?

    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

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 > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106 Most Valuable Professional

#3
Eugen Podkorytov Profile Picture

Eugen Podkorytov 95

Overall leaderboard

Product updates

Dynamics 365 release plans