I am trying to execute a stored procedure in an instance of ms sql server, using php from a mac.
I have recently bought a mac book pro and seem to be having real problems achieving this.
I now have a connection established, which I know is working as if I change the password I get the message:
"Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[01002] Adaptive Server connection failed (severity 9)' in /Users/davidwhitwell/Sites/test/connect.php on line 6"
Correcting the password does not give me the error.
The script I am trying to run is:
$sql = $pdo->prepare("CALL [finance].[get_all_company_names]");
$sql->execute();
$results = $sql->fetchAll();
var_dump($results);
The result returns an empty array. I know data exists and that the correct permissions are in place to execute the procedure as I can do this directly with sql server management studio.