Share via

Unable to execute simple query in azure sql server

Solipeta Bhandavi 0 Reputation points
2023-11-16T06:37:23.4966667+00:00

I am using azure sql server for .net applications, now I am unable to open functions, stored procedures and even unable to run simple queries in azure sql server in SSMS and in Azure portal also.

Azure SQL Database
SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories


1 answer

Sort by: Most helpful
  1. SSingh-MSFT 16,461 Reputation points Moderator
    2023-11-16T07:46:21.2933333+00:00

    Hi Solipeta Bhandavi,

    Welcome to Microsoft Q&A forum.

    As I understand, you are getting Timeout error when connecting to Azure SQL Database.

    1. Make sure that TCP/IP is enabled as a client protocol on the application server. For more information, see Configure client protocols. On application servers where you don't have SQL tools installed, verify that TCP/IP is enabled by running cliconfg.exe (SQL Server Client Network utility).
    2. Check the application's connection string to make sure it's configured correctly. For example, make sure that the connection string specifies the correct port (1433) and fully qualified server name. See Get connection information.
    3. Try increasing the connection timeout value. We recommend using a connection timeout of at least 30 seconds.
    4. Test the connectivity between the application server and the Azure SQL Database by using SQL Server Management Studio (SSMS), a UDL file, ping, or telnet. For more information, see Troubleshooting connectivity issues and Diagnostics for connectivity issues.

    Note

    As a troubleshooting step, you can also test connectivity on a different client computer.

    1. As a best practice, make sure that the retry logic is in place. For more information about retry logic, see Troubleshoot transient faults and connection errors to SQL Database.

    If these steps don't resolve your problem, I would recommend you to please file a support ticket for deeper investigation and in case if you don't have a support plan, do let us know here so that we can check on other options to unblock you.

    Thanks

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.