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.