Login sometimes failing immediately after restoring a database

Posted by Ian Ringrose on Server Fault See other posts from Server Fault or by Ian Ringrose
Published on 2011-03-07T15:56:41Z Indexed on 2011/03/07 16:11 UTC
Read the original article Hit count: 259

Filed under:

We have a set of automated tests that restore a database then run some .net code against the database. Sometimes after the database is restored the login from Ado.net fails. If I re-run the test, then the restore and login works OK. The restored database looks OK when viewed with Management Studio.

This is only an problem on some machines.

We are using SQL server 2008.

Is there a known issue with a database restore “returning “ a very short time before the restored database is up and running.

© Server Fault or respective owner

Related posts about sql-server