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 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

I have the same question (0)
  • VKST Profile Picture
    10 on at

    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

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,111 Moderator on at

    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
    10 on at

    Hi Inge,

    No difference, same prompt for User ID and password.

    -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

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 NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans