Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

finsql ignores username and password from command line

(0) ShareShare
ReportReport
Posted on by 5

Hello everybody,

to optimize the development with different NAV versions and databases, we call the development environment incl. database via command line.

Example:  "C:\\Program Files (x86)\Microsoft Dynamics NAV\110\RoleTailored Client\finsql.exe" servername = "NAV2018", database = "DEMO_NAV_2018", ntauthentication = 0, password = foobar, username = foobar

That works great. It even opens the database immediately when NT-Authentication is enabled.

However, without NT-Authentication, the user and password input dialog appears, even though username and password are given.

According to the documentation ( docs.microsoft.com/.../using-the-development-environment-from-the-command-prompt ) I think the statement is right. We also tried all variants (different order, No instead of 0, ...), without success.

Any idea?

Thanks,

Ralf

*This post is locked for comments

  • VKST Profile Picture
    VKST 10 on at
    RE: finsql ignores username and password from command line

    Hi Inge,

    No difference, same prompt for User ID and password.

    -Vladimir

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 997 Moderator on at
    RE: finsql ignores username and password from command line

    Is there a difference if you run the command as a administrator or not ?

    docs.microsoft.com/.../using-the-development-environment-from-the-command-prompt

    The user name to use to authenticate to the database. The user name must exist in the database. If you do not specify a user name and password, then the command uses the Windows user name and password of the current user to authenticate to the database.

    Alert: If User Access Control (UAC) is turned on and you do not specify to run the Command Prompt window as Administrator, then the Command Prompt window runs as a standard user. In this case, if you do not specify the username parameter and the current Windows user is an Administrator, then the command is run as the standard user.

    If you specify the username parameter, then you must also specify the password parameter and the ntauthentication parameter must be no or 0.

  • VKST Profile Picture
    VKST 10 on at
    RE: finsql ignores username and password from command line

    Hi Ralf,

    A lot of time have passed, however, we have the same issue with 11.0 version.

    Any idea how to fix that? Looks like a bug.

    -Vladimir

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans