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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Accessing External Database From Plugin

(0) ShareShare
ReportReport
Posted on by 505

The question I have is around the best practices for accessing external databases through CRM plugins.  We currently have a separate set of common libraries that utilize Entity framework to write to their specific databases.  When we tried to utilize this library within a plugin by using ILMerge of the dependent assembies the plugin threw an error around the entity framework SQL Provider.

"No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'. Make sure the provider is registered in the 'entityFramework' section of the application config file"

We are on premise so we could, but don't want to probably adjust the CRM config file to handle this, however this brought up a design discussion on how this should be built.  So we are looking for ideas or options around how to access external databases that CRM and other application my share.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mahadeo Matre Profile Picture
    17,021 on at

    I will recommend to create web service for external database operations and call this web service into CRM plugin.

    Here are some examples of how to call web service in CRM plugin

    code.msdn.microsoft.com/How-to-call-External-WCF-42c4490d

    mscrmmindfire.wordpress.com/.../calling-external-web-service-from-a-crm-2011-plug-in

    main thing you need to consider is that it might slow down your plugin execution because of external web service.. so instead of using Synchronous plugin you can try using Asynchronous plugin or workflow to do operations on external database if external database is not required to update immediately.

    Hope this will help..

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans