Hello, I have this .mdf file which is being generated by a different team. The database on their side has AUTO_CLOSE as OFF. But once I attach that .mdf in my local instance in SQL SEREVR EXPRESS 2008, and look at the database properties, AUTO_CLOSE seems to be set to ON. Why is this happening? Should I manually set the AUTO_CLOSE to OFF everytime after attaching the .mdf file? Thanks!
From Microsoft: Features like Auto-Close and the ability to copy databases as files are enabled by default in SQL Server Express, while the high availability and business intelligence features are absent. It is very easy to "scale up" if that becomes necessary, as Express applications will work seamlessly with SQL Server 2005 Workgroup, Standard, or Enterprise editions. The Web download enables a free, fast, and convenient deployment.
Found out the following: In Restore Option: If the source database has AUTO_CLOSE off, after restoring to Express edition, the AUTO_CLOSE is still turned off. The AUTO_CLOSE is turned on only if you are creating new databases in SQL Express. In Attach Option: If you attach the .mdf file,you need to turn off the Auto_ClOSE manually as when AUTO_CLOSE is set ON, this option can cause performance degradation on frequently accessed databases due to increased overhead of opening and closing the database after each connection.