Jira issue originally created by user bostjan:
When construstring DSN in Doctrine\DBAL\Driver\PDOSqlsrv\Driver it should add selection of database in DSN.
So for example DSN will look like:
$dsn ="sqlsrv:Server=(local) ; Database = AdventureWorks ";
As writen in chm manual which come with Sql server drivers for PHP v2
Comment created by bostjan:
I changed this Issue to Bug and give it priority of blocker, since with final relase of Sql Server Driver 2 for PHP it's not working correctly.
Solution can be found on my blog: http://bostjan.muha.cc/2010/08/doctrine-2-mssql/
Comment created by @beberlei:
This was fixed in Beta4, but will probably be changed again for the next testrelease because of DBAL-49.
Issue was closed with resolution "Invalid"