<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

$connection = new PDO('dblib:host=192.168.121.25;dbname=Fidelitas;charset=utf8', 'aval', '1234567890');
$stmt  = $connection->prepare("exec obtener_Sociedades @p_cuit=?");
$cuit = '30501677643'; 
$stmt->setFetchMode(PDO::FETCH_OBJ);
$stmt->bindParam(1,$cuit); 
if ($stmt) {
 	$stmt->execute();
}
/*
$results = $stmt->fetchAll(PDO::FETCH_OBJ);
foreach ($results as $key => $result) {
    print_r($result->ramo);
}
*/
if ($result = $stmt->fetch()) {
   print_r($result);
} else 
{ print_r("No hay datos");}

?>