I am using SQL Server 2005.
It has multiple databases (more than 1500) created.
We have set auto_close option of these databases set to 'true' and recovery model to 'simple'.
I could see many databases come in this 'recovering' mode for a fraction of second and then go out of this state. Some different set of databases come again in this 'recovering' set for fraction of second and then come to normal state.
This is happening with multiple databases continously, different set of databases each time.
No database is remaining in 'recovering' state for more than a second.
(I could see 'recovering' against database in sql server management studio.)
When I checked the output of sys.databases multiple times, i could see value 0 for column 'is_cleanly_shutdown' for different set of databases each time.
I could see in the logs follwing entries continously for nearly all databases:
CHECKDB for database <database_name> finished without errors on <date time>. This is an informational message only; no use action is required.
<date time> here shown is much older (nearly 1 month old) compared to when we are getting the log entries.
Can anybody please tell me why this is happening?
Also I would like to know what happens when database gets shut down.
How can any database get into recovering mode automatically?
Can "backup log <db_name> with truncate_only" option could compel db to go in recovering mode automatically for few seconds?