Hi all, I have been trying to deploy a .exe
app from our bus server. This .exe
executes few SQL scripts and needs to connect to an SQL instance. We recently migrated to Azure SQL Managed Instance from SQL Server. During the deployment process, the following network error is observed.
Unhandled Exception: Microsoft.SqlServer.Management.Common.ConnectionFailureException: Failed to connect to server az-sqlmanagedinstance-dmuat.ec19f487cbba.database… —> System.Data.SqlClient.SqlException: 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) —> System.ComponentModel.Win32Exception: The network path was not found
— End of inner exception stack trace —
-
We have enabled all the necessary firewalls from our bus server.
-
We are able to connect to the SQL Managed instance using SSMS.
-
Enabled TCP/IP connection
-
Created an exception for port 1433 in Windows Firewall.
-
Able to ping the SQL Managed Instance from the server.
What else can I do here?