lib/Doctrine/DBAL/Driver/PDOSqlsrv/Driver.php
private function _constructPdoDsn(array $params, array $connectionOptions)
    {
        $dsn = 'sqlsrv:server=';

        if (isset($params['host'])) {
            $dsn .= $params['host'];
        }

        if (isset($params['port']) && ! empty($params['port'])) {
            $dsn .= ',' . $params['port'];
        }

        if (isset($params['dbname'])) {
            $connectionOptions['Database'] = $params['dbname'];
        }

        if (isset($params['MultipleActiveResultSets'])) {
            $connectionOptions['MultipleActiveResultSets'] = $params['MultipleActiveResultSets'] ? 'true' : 'false';
        }

        return $dsn . $this->getConnectionOptionsDsn($connectionOptions);
    }
private function _constructPdoDsn(array $params, array $connectionOptions)
    {
        $dsn = 'sqlsrv:server=';

        if (isset($params['host'])) {
            $dsn .= $params['host'];
        }

        if (isset($params['port']) && ! empty($params['port'])) {
            $dsn .= ',' . $params['port'];
        }

        if (isset($params['dbname'])) {
            $connectionOptions['Database'] = $params['dbname'];
        }

        if (isset($params['MultipleActiveResultSets'])) {
            $connectionOptions['MultipleActiveResultSets'] = $params['MultipleActiveResultSets'] ? 'true' : 'false';
        }

        return $dsn . $this->getConnectionOptionsDsn($connectionOptions);
    }
private function _constructPdoDsn ( array $ params , array $ connectionOptions ) { $ dsn = 'sqlsrv:server=' ; if ( isset ( $ params [ 'host' ] ) ) { $ dsn .= $ params [ 'host' ] ; } if ( isset ( $ params [ 'port' ] ) && ! empty ( $ params [ 'port' ] ) ) { $ dsn .= ',' . $ params [ 'port' ] ; } if ( isset ( $ params [ 'dbname' ] ) ) { $ connectionOptions [ 'Database' ] = $ params [ 'dbname' ] ; } if ( isset ( $ params [ 'MultipleActiveResultSets' ] ) ) { $ connectionOptions [ 'MultipleActiveResultSets' ] = $ params [ 'MultipleActiveResultSets' ] ? 'true' : 'false' ; } return $ dsn . $ this -> getConnectionOptionsDsn ( $ connectionOptions ) ; }
Constructs the Sqlsrv PDO DSN.

@param mixed[]  $params
@param string[] $connectionOptions

@return string The DSN.
Constructs the Sqlsrv PDO DSN .