472,101 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,101 software developers and data experts.

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 2748
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
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.