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

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Not able to connect to SQL server from NAV 2009 R2 in Windows server 2016 (Server cannot be found)

(0) ShareShare
ReportReport
Posted on by 39

Working on a new migration of NAV 2009 R2. So, now we're using a new environment such as Windows Server 2016 and SQL 2017 and NAV 2009 R2. For now NAV client, NAV server and SQL server are all in the same machine(Windows Server 2016) for my troubleshooting.

I've installed NAV 2009 R2 but when I go to NAV database open and when I try to open the database it says Server not found inside windows server 2016 but I'm able to get the same in my local machine.
Another issue is I'm not able to connect to SQL database when I try to install sql components(but manually handled this by creating extended stored procedure of xp_ndo files of 32 bit and 64 bit separately so this should be a concern I believe.

Just my work arounds here:
1. I installed SQL 2017 in my local machine and checked NAV 2009 R2 it works fine so issue is not here with SQL compatibility I believe.
2. I have highest privilege permission as administrator in windows server 2016, I ran the setup as administrator and UAC is turned off.
3. port id, sql and nav exe files, services have been added in windows firewall.
4. firewall is anyway turned off for now.
6. ping, telnet of the server is working fine
7. I'm able to connect to SQL server through SSMS studio.
8. Tried both windows and SQL authentication.
9. Also verified by giving ip address instead of name in server when I was trying to open database from NAV classic.
10. config file of NAV has been verified with Server name, database name, port ids.
11. All services are running fine without issues
12. tcp/ip port is enabled.
13. Verified tcp port 1433, it is listening for SQL server.

So, in one word I would say, I have referred all previous blogs related to this issue before creating this question. So, trying to find out my luck here atleast if any geeks can solve my issue.

I have the same question (0)
  • Verified answer
    Harikiran BM Profile Picture
    39 on at
    RE: Not able to connect to SQL server from NAV 2009 R2 in Windows server 2016 (Server cannot be found)

    Looks like there was a compatibility issue of Windows Server 2016 with NAV 2009 R2. I tried the same in Win Server 2012 and it did work as expected.

  • Suggested answer
    Suresh Kulla Profile Picture
    49,402 Super User 2025 Season 2 on at
    RE: Not able to connect to SQL server from NAV 2009 R2 in Windows server 2016 (Server cannot be found)

    Please share some screenshots of the error and how you are connecting and also when you connect using SSMS

  • Harikiran BM Profile Picture
    39 on at
    RE: Not able to connect to SQL server from NAV 2009 R2 in Windows server 2016 (Server cannot be found)

    I'm able to view the default server but when I look up for database it says server not found.

    Just thought if it could be compatibility issue of windows server 2016 and nav 2009 r2 so tried installing nav 2017 but again same connection error.

    Error:

    SQL server instance exists but a connection could not be established. But to confirm sql server is running, tcp is enabled and my user id exists as windows account.

  • Suggested answer
    Suresh Kulla Profile Picture
    49,402 Super User 2025 Season 2 on at
    RE: Not able to connect to SQL server from NAV 2009 R2 in Windows server 2016 (Server cannot be found)

    Are you able to see the server and select database but when you click Ok you are getting that error? or you are not able view the server and database from NAV?

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sumit Singh Profile Picture

Sumit Singh 2,707

#2
Sohail Ahmed Profile Picture

Sohail Ahmed 2,675 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 2,228 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans