469,076 Members | 1,967 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,076 developers. It's quick & easy.

Error message: Cannot open database requested in login 'teachdb'. Login fails.

We are using SQL Server 2005 Express Edition. It has been observed that sometimes our application crashes and from the logs recovered the following sql exception was found. "Cannot open database requested in login 'teachdb'. Login fails.' ". Though the behavior is sporadic, it is critical for us. Restarting SQL Server some times help, but we cannot expect the client to do so since it would impact other applications running.

Has anybody experience a similar problem? Any solution towards the same would be much appreciated.
Jan 12 '09 #1
1 2644
I found that the system in which our application was running had undergone a hard reboot and the database got corrupted. This was the reason why the application was not able to establish SQL connection with the specified database. However this particular SQL message is generic and does not address a particular issue.
Jan 13 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by PABLIN | last post: by
1 post views Thread by Shyam | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.