A network-related or instance-specific error occurred while establishing a connection to SQL Server.

Ahamed Ajas 0 Reputation points
2023-02-04T18:34:19.05+00:00

I am using a macbook m1 pro while i am connecting to azure data base it is showing an error but i have done everything correctly but i dont know what is the problem occured please help me with thisScreenshot 2023-02-04 at 11.58.55 PM

SQL Server on Azure Virtual Machines
Azure SQL Database
Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
713 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Alberto Morillo 32,886 Reputation points MVP
    2023-02-05T02:50:01.4433333+00:00

    That error is related to an incorrect connection string or incorrect connection settings. Please not you are setting the name of the server "sa". Please verify in Azure Portal the real name of the server. Please note that "sa" is not available on Azure SQL, as already used to on SQL Server.

    Please read this tutorial and compare the connection settings with the images provided in the tutorial.

    0 comments No comments