原來MSSQL也有shutdown的狀態

oo0yuki0oo發表於2010-06-28
SQL Express by default has 'AUTO_CLOSE' database option set to true. This means when your database has no users connected, the database status will show 'Shutdown Normal'. When a user connects to the database, it is started up and status is changed to 'Normal'. To leave the database on and available all the time, set the 'AUTO_CLOSE' option to FALSE. It can be done by running this script against each user database upon creation or after the fact: Code Block ALTER DATABASE SET AUTO_CLOSE OFF[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8337095/viewspace-1034721/,如需轉載,請註明出處,否則將追究法律責任。

相關文章