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

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Connection string to access Dynamics 365 (SQL Server) from an outside app

(2) ShareShare
ReportReport
Posted on by 4
Hello,
 
We have a C# application which we have previously used to connect directly to the Dynamics 365 underlying SQL Server database.
We used a standard connection string which worked
 
Server=server name; Authentication=Active Directory; Password; Encrypt=True; Database=db name; User Id=ID name; Password=password text
 
We now connect via authentication type - "Azure Active Directory - Universal with MFA" but cannot figure out how to get the connection string to work.  DB connection from C# app now fails.  Any ideas how to structure the db connection string to work with this new authentication type?
 
Thanks,
Dan
Categories:
I have the same question (0)
  • AR-01121610-0 Profile Picture
    4,965 Moderator on at
    Connection string to access Dynamics 365 (SQL Server) from an outside app
    Hy,
    which D365 application you are using?
    If Finance/Supply Chain/Commerce this will not work in this way.
     
    Hope this helps.
     

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 109

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 77 Super User 2025 Season 2

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 70

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans