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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How To Setup DSN in Multiple User from External DB to AX 2012?

(0) ShareShare
ReportReport
Posted on by 5,680

Hi Everyone,

I have developed code for Connect External DB to AX 2012 for Integration purpose.

for this i Have Created DSN for Windows Authentication and I Have Rights to Access SQL Server so i can validate and import Data in AX 2012.

But, While importing a Data from functional or not permission allowed SQL  user for there doing this get error for "Unable Log to Database Error".

my objectives are:

how access data other user whom not having permission to SQL Access.............from DSN Windows Authentication................

Thank You........

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    Hi Karthik,

    It is not recommended to give direct permissions on a SQL database. Neither it is recommended to insert data into the AX database other than supported methods such as AIF, Data import/export framework. When inserting or updating records directly, you may bypass all AX business logic and also the record-id framework.

    Why did you choose this option?

  • Martin Dráb Profile Picture
    237,803 Most Valuable Professional on at

    That users without sufficient permissions are not allowed to access the database is definitely the correct behaviour.

    The right question is: What account should be used for running the code? What would make sense to me is the AOS service or a specialized account just for the integration. You're obviously running it in the context of the current user.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans