El script que uso para abrir la conexion es el siguiente:
Código PHP:
Ver original$this->activeConnections[$name] = new PDO(
self::$connections[$name]['dsn'],
self::$connections[$name]['username'],
self::$connections[$name]['password'],
$options
);
$this->activeConnections[$name]->fetch_mode = PDO::FETCH_OBJ;
$this->activeConnections[$name]->setAttribute(PDO::ATTR_PERSISTENT, true);
$this->activeConnections[$name]->setAttribute(PDO::ATTR_DRIVER_NAME , PDO::SQLSRV_TXN_READ_UNCOMMITTED);
$this->activeConnections[$name]->setAttribute(PDO::ATTR_TIMEOUT, 50);
$this->activeConnections[$name]->setAttribute(PDO::SQLSRV_ATTR_QUERY_TIMEOUT, 50);
$this->activeConnections[$name]->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);