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)

Setup could not connect to the database server

(0) ShareShare
ReportReport
Posted on by

Hi all,

I'm attempting to install Microsoft Dynamics AX 2012 R3 to do some testing and demonstration. 

When attempting to install the database component, I am greeting with this message "Setup could not connect to the database server ServerName*\DBName*"

However, I can clearly connect to this server & instance in SQL Server 2008 R2 on my Windows Server 2008 R2 machine.

I have tried setting the permission levels for the administrator account to match whatever might be needed. I just cannot get past this point. I've created new servers and instances, and still get the same result. Can anyone provide any insight?

Regards,

Parker

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Syed Zeeshan Haider Jafry Profile Picture
    725 on at

    Hi

    Please try after disabling the windows firewall on the DB server.

  • ParkerPeng Profile Picture
    on at

    I have close the windows firewall both on DB server and AOS server

  • ParkerPeng Profile Picture
    on at

    But the error still cannot pass.

  • Suggested answer
    Community Member Profile Picture
    on at

    It seems  your server topology for this installation is multi server.

    as you have already validated the permission then it should be some other issue, otherwise please review the permission once again.

    can you please confirm the in DB server name text box, are you able to see the DB server name or you are typing it

    Consider IP address in place of DB server name

    like <<IP>>\<<Database Instance Name>>

    please verify and update us with your findings

  • Suggested answer
    Denis Macchinetti Profile Picture
    16,444 on at

    Hi Parker

    Take a look at blogs.msdn.com/.../how-to-enable-remote-connections-in-sql-server-2008.aspx

    So, check if the "Allow remote connections to this server" option is enable.

    Also, verify if the TCP/IP protocol is enabled

  • Verified answer
    DaxNigel Profile Picture
    2,574 on at

    MSSQLServer is the default instance and as such does not need to be used int he connection string, just use DEV07

    After the firewalls have been disabled on both machine sI would check the user permissions in SQL. Make your account a sysadmin in SQL and try again. If this works fine then it was a user account setup issue.

  • Tommy Skaue Profile Picture
    Moderator on at

    I'll second Nigel. No need to explicitly use MSSQLSERVER or even "DEV07\.". The default named instance will pick up connections when the instance name is not provided. I believe the SQL Browser service needs to be running on the SQL Server first though. You should make sure the account you're using to install with has proper permissions all over the environment. So local admin on the AOS server and the SQL Server is a given, and further have necessary permissions on the SQL Server instance itself. Easiest is giving yourself sysadmin on SQL Server instance. During installation, the necessary permissions for the service accounts will be setup and if necessary you can retract the permissions given to the setup account (if really necessary). This looks like a development space, so I would expect broad permissions instead of least privilege. :-) 

  • Verified answer
    Community Member Profile Picture
    on at
    • Off the firewall of DB server
    • the installer user must have the following role in SQL Server
      • dbcreateor
      • public
      • serveradmin
      • setupadmin
      • sysadmin
    • and the user mapping with following in SQL Server
      • db_accessadmin
      • db_datareader
      • db_datawriter
      • db_ddladmin
      • db_owner
      • db_securityadmin
      • public
      • RSExecRole

      it must be mapped with master database.

      Hope answer the question

  • ParkerPeng Profile Picture
    on at

    Thank you, the issue is caused by my user permission.

  • kgh Profile Picture
    80 on at

    Hi Parker,

    I have the same issue, please can you give more details about the solution

    Best Regards

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