KB Issue
When creating a new connection to a server in SSMS, you may encounter the following error if your settings are incorrect or not enabled. Named Pipes Provider, error: 40
Copy
Search Site
Search Google
Issue Details
When testing a new server connection, you may encounter the following error.
Testing the registered server failed

TITLE: New Server Registration
-

Testing the registered server failed. Verify the server name, login credentials, and database, and then click Test again.
-

ADDITIONAL INFORMATION:

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 5)

For help, click: https://docs.microsoft.com/sql/relational-databases/errors-events/mssqlserver-5-database-engine-error
-

Access is denied
-

BUTTONS:
OK
-----

Recreate Issue
This will happen if you do not have the TCP/IP IP1 Enabled. There are two enabled options for this section. As shown below.
Resolve IssueTo connect your new SQL Server to SSMS, do the following.
  1. Open Computer Management
  2. Right-click [Computer Management]
  3. Choose [Connect to another computer ...]
  4. Type in the SQL Server's Name: SQL-01
  5. Once it loads, expand [Services and Applications]
  6. Exand, SQL Server Configuration Manager
  7. Expand, SQL Server Network Configuration
  8. Click on [Protocols for InstanceName]
  9. In the Center windows, right-click each TCP/IP and Named Pipes
    And choose to Enable = Yes, click OK to Apply.
  10. Right-click TCP/IP and choose Properties.
  11. Click the [IP Addresses] tab
  12. IP1 Set the following
    Active = Yes (This got set earlier)
    Enable = Yes
    TCP Dynamic Ports = 0 (Clear this, make it blank)
    TCP Port = 1433
    If you are using AOAG, then at the bottom,
    IPAll - TCP Dynamic Posts = 49736
  13. Click [OK] to Apply and close the dialog.
  14. Next, Open [Services]
    Click the S
    Copy
    Search Site
    Search Google
    key on your keyboard to jump to the S's.
  15. Right-click on [SQL Server (InstanceName)] and choose [Restart]
  16. After this is complete.
    Open [ SSMS ] and choose to test the connection to the server again.