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博客 ” ,链接:https://blog.itpub.net/8337095/viewspace-1034721/
,如需转载,请注明出处,否则将追究法律责任。