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 :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

ODBC connection on an D365 on-Premise

(0) ShareShare
ReportReport
Posted on by
Hi
 
We do have a D365 on-premise installation and need to connect to an external Database to read and write data over classes.
How can I create ODBC connections in an on-prem installation?
I have the same question (0)
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,803 Super User 2026 Season 1 on at
    Hi @Cembrit,
     
    Please refer to this :
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • Suggested answer
    Judy Profile Picture
    Microsoft Employee on at
    HI, please refer to the following links to see if it can help:
     
  • Cembrit Profile Picture
    on at
    Thx Mohamed
     
    I found this site before but I do not understand what is needed if I want to read and write over ODBC connection
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,803 Super User 2026 Season 1 on at
    Hi @Cembrit,
     
    In this case i think you must do a customization and developing.
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • Cembrit Profile Picture
    on at
    @Mohamed Amine Mahmoudi If I had an idea how I would have done it ;-)
  • Cembrit Profile Picture
    on at
    Sorry to come back to this post but I do not find any option in D365FO to setup a DB connector 
    WIll it be possible to write SQL Statements like 
    SQL ="SELECT [accountid],[accountnumber],[ap_AccountTypeName],[ap_Categoryidname],[ap_crmaccountid],[ap_ResponsibleidName],[name],[OwningBusinessUnit] "
            + "FROM [EDW].[CRM].[CRM365_Account] CRM365Acc "
            + "where not exists ("
            + "select * from  [EDW].[CRM].[CRM365AX_Account] CRM365AXAcc "
            + "where CRM365AXAcc.accountid = CRM365Acc.[accountid]) "
            + "AND CRM365Acc.[ap_AccountTypeName] = 'Customer'";
    I really have no clue how to solve this in D365FO (on-premise)
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,803 Super User 2026 Season 1 on at
    Hi @Cembrit,
     
    Plese refer to this
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • Cembrit Profile Picture
    on at
    @Mohamed
     
    Thx I did that but do you have any idea how to setup the DSN than. Normally I would set it up with "integrated windows authentication" but if I do so I get an error :
    Microsoft][ODBC Driver 17 for SQL Server]SSL Provider: The certificate chain was issued by an authority that is not trusted.
    [Microsoft][ODBC Driver 17 for SQL Server]Client unable to establish connection
     
     
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,803 Super User 2026 Season 1 on at
  • Cembrit Profile Picture
    on at
    Yes I found the option after I posted here but then I get
     
    The login packet used to open the connection is structurally invalid; the connection has been closed. Please contact the vendor of the client library. 
     

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 161 Super User 2026 Season 1

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 126 Super User 2026 Season 1

#3
Zain Mehmood Profile Picture

Zain Mehmood 89 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans