Monday, July 30, 2012

MSSQL 2008 : Cannot open database requested by the login. The login failed

I got this error:

sqlalchemy.exc.ProgrammingError: (ProgrammingError) ('42000', '[42000] [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open database "ICBF_GDOC_TESTS" requested by the login. The login failed. (4060) (SQLDriverConnect); [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open database "ICBF_GDOC_TESTS" requested by the login. The login failed. (4060)') None None.

In my case, the issue was that the database name was wrong , that was all :/

1 comment:

Unknown said...


very awesome error.Since i admired your errors so much Thank you author for the fabulous errors been posted.


http://www.wikitechy.com/fix-error/error-cannot-open-database-requested-by-the-login



Both are really good.
Cheers,
Venkat