Quantcast
Channel: SQL Server Reporting Services, Power View 포럼
Viewing all articles
Browse latest Browse all 24955

Can't connect to a remote SQL server using PHP

$
0
0

I'm trying to connect to a remote sql server from an azure test site using this connection string. 

 try{
 $db = new PDO('sqlsrv:server=[ip],1433; database=[dbname]', $username, $password);
 $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);    }
catch(PDOException $e){
echo $e->getMessage();  }

The error message I get is this: 

SQLSTATE[08001]: [Microsoft][SQL Server Native Client 11.0]TCP Provider: 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.

Any ideas/leads about what I may be doing incorrectly? ANy help would be appreciated. 

Sandeep. 


Viewing all articles
Browse latest Browse all 24955

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>