This is my 46th blog on SQL Server Trace Flag 3608 in the series of One Trace Flag a Day. You can go to all blogs under that series by clicking here.
This is one of the trace flag which generally used during troubleshooting issues. This trace flag is used to prevent automatically starting and recovering any database except master database. Let me show you practically. First add this TF as startup parameter and restart the sql service.
Now if you will go to the SQL Instance and open the SQL Server error log then you will find out the entry as shown in below figure.
Keep in mind that, if activities require tempdb are initiated, then model is recovered and tempdb is created. Other databases will be started and recovered when accessed. Some features, such as snapshot isolation and read committed snapshot, might not work.
Finally, do not forget to remove trace flag 3608 from startup parameters and restart the sql service.
PS: Do not use trace flags in production environment without testing it on non production environments and without consulting because everything comes at a cost.
Prince Kumar Rastogi