lib/Doctrine/DBAL/Schema/SQLServerSchemaManager.php
private function closeActiveDatabaseConnections($database)
    {
        $database = new Identifier($database);

        $this->_execSql(
            sprintf(
                'ALTER DATABASE %s SET SINGLE_USER WITH ROLLBACK IMMEDIATE',
                $database->getQuotedName($this->_platform)
            )
        );
    }
private function closeActiveDatabaseConnections($database)
    {
        $database = new Identifier($database);

        $this->_execSql(
            sprintf(
                'ALTER DATABASE %s SET SINGLE_USER WITH ROLLBACK IMMEDIATE',
                $database->getQuotedName($this->_platform)
            )
        );
    }
private function closeActiveDatabaseConnections ( $ database ) { $ database = new Identifier ( $ database ) ; $ this -> _execSql ( sprintf ( 'ALTER DATABASE %s SET SINGLE_USER WITH ROLLBACK IMMEDIATE' , $ database -> getQuotedName ( $ this -> _platform ) ) ) ; }
Closes currently active connections on the given database.

This is useful to force DROP DATABASE operations which could fail because of active connections.

@param string $database The name of the database to close currently active connections for.

@return void
Closes currently active connections on the given database .