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 :
Business Central forum

Connecting to an external database

(0) ShareShare
ReportReport
Posted on by

Is it possible to connect to an external SQL Database  from within an extension  (i.e. can extensions connect to an external SQL Database)?

Categories:
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    If it targets the on-premise (target=internal) then the answer is yes, you can connect directly to another database.

    If it’s for the SaaS world (BC online) then you have to create an interface layer by using web services (you cannot directly access an external on-prem db)

  • Suggested answer
    LAURA CASTELLI Profile Picture
    5 on at

    Hi,

    can you post code example to do this ?

    Thanks

    Laura

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    If you strictly target the on-premise world, you can still use ADO.NET variables in your AL code and so using something like described here:

    www.erpsoftwareblog.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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans