Sign Up for Training |
Jet Global Company Site
Community
Downloads
Training
Submit a Request
Become a Jet Insider
Give Feedback

Login Failed with Dynamics NAV 2013 and Higher (SQL Server) Data Source


Overview

When defining a SQL Server data source connection to Dynamics NAV 2013 (or higher), the following error message is displayed:

Error.png

Complete text from error message:

The data provider returned the following error:

Login failed for user 'DOMAIN\USER'.

Cause:

The current Windows user does not have sufficient permissions to directly access the NAV SQL database.


Resolution Process

In order for users to utilize the Dynamics NAV 2013 and later (SQL Server) data source with 'Windows Authentication (current user)' for the first authentication parameter in the Jet Reports Data Source Settings, the user must be added to the root security of the SQL Server Management Studio and mapped to the Dynamics NAV 2013-2018 database with db_datareader permission and a public role.

While this will resolve the error and make the connection possible, it is not the recommended configuration, as it will require that all users be added to your SQL Server security in order to connect.  While Jet Reports will still restrict the users to only have access to the data to which they have permissions in Dynamics NAV, users could go outside of Jet Reports and obtain access to all of the data in the database (e.g. Excel > Data > Get Data > From Database > From SQL Server Database).

 

The recommended configuration for the ‘Dynamics NAV 2013 and later (SQL Server)’ data source is as follows.

  1. Create a SQL Server database user with db_datareader access to the Dynamics NAV database and a public role.

    Screenshot_1.PNG
    Screenshot_2.PNG
  2. In the Jet Data Source Settings, switch to SQL Server Authentication and enter the appropriate credentials:

    Screenshot_3.PNG
  3. If your organization utilizes the Jet Service Tier to distribute data sources to users then you must make the data source changes in the Jet Administration Console and edit the scopes for that data source as shown below:

    Screenshot_4.PNG
    Screenshot_5.PNG


Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments