I can easily access Azure SQL database through SQL Server 2014 but When I am trying to connect my PHP(Laravel) web application to Azure SQL Server through ODBC Driver 11 for SQL Server and also tried with SQL Native Client 11 , it is giving me different types of exceptions as given below
- [Microsoft][ODBC Driver 11 for SQL Server] A transport-level error has occurred when receiving results from the server (provider: TCP Provider, error: 0 - The semaphore timeout period has expired.)
- [Microsoft][ODBC Driver 11 for SQL Server] A transport-level error has occurred when receiving results from the server. (Provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)
- [Microsoft][ODBC Driver 11 for SQL Server]System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. The statement has been terminated.
- [Microsoft][ODBC Driver 11 for SQL Server] A connection attempt
failed because the connected party did not properly respond after a
period of time, or established connection failed because connected
host has failed to respond. - [Microsoft][ODBC Driver 11 for SQL Server]Named Pipes Provider: Could not open a connection to SQL Server [53]. , SQL state 08001 in SQLConnect
I have gone through this Technet Article and followed all the steps successfully till step 3.
But when I traceroute to the server it is giving me following result
So, the issue which I am facing is due to reason that I am getting request timeout. And I have configured server firewall and added the client ip.