Thanks for posting your question in the Microsoft Q&A forum.
Did you enabled the remote access for your SQL Server?
** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful **
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have an ASP website residing on a Windows Server 2022 Datacenter Azure Edition. The website is linked to a SQL database on the same server. When trying to log in, the connection fails with message "Exception:Thrown: "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: TCP Provider, error: 0 - The wait operation timed out.)" (System.Data.SqlClient.SqlException)".
The following connection worked during initial testing but has since stopped working.
*
Thanks for posting your question in the Microsoft Q&A forum.
Did you enabled the remote access for your SQL Server?
** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful **
Hi @Product Support,
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: TCP Provider, error: 0 - The wait operation timed out.)" (System.Data.SqlClient.SqlException)
It is a general issue, you may follow the official documentation to troubleshoot.
A network-related or instance-specific error occurred while establishing a connection to SQL Server
Regards,
Zoe Hui
If the answer is helpful, please click "Accept Answer" and upvote it.