Aller au contenu principal

Recherche

Recherche

Auto Close Option

Commentaires

4 commentaires

  • Avatar
    Ian Cummings
    Modérateur

    I'll look into this to find out what our default behaviour is in different scenarios, and why we use the settings we do.

     

    It seems to be the case that if a database is created with the Express edition of SQL Server, then by default the "AUTO_CLOSE" option set to ON.  I would be interested to know if the System Database Setup wizard has this option set to OFF when using a full edition of SQL Server.

     

    The below article has a good write-up on this issue, and give information on how to change this setting using the SQL Management Studio.  After reading the below article it would indeed seem to make sense to default this setting to OFF.

     

    http://sqlmag.com/blog/worst-practice-allowing-autoclose-sql-server-databases

    0
  • Avatar
    Ian Cummings
    Modérateur

    I've asked development for their input on this matter.  Meanwhile, if the BTSDB will be in frequent, transactional use, such as when BarTender is implemented in some kind of automated solution, then I would suggest you set this option to false.  If and until development give me information to the contrary, then this would be my recommendation.

    0
  • Avatar
    Legacy Poster

    ... I would suggest you set this option to false.  If and until development give me information to the contrary, then this would be my recommendation.

     

    Thanks!

    0
  • Avatar
    Ian Cummings
    Modérateur
    Information from development:
     
    1. AUTO_CLOSE is set to False by the script which creates the system database.
     
    2. As a test we found that a database created by the wizard for SQL Server Express 2012 left the AUTO_CLOSE set to True.
     
    3. If the user previously created an empty database and used our setup wizard to create the BarTender System Database schema on top of it, then in this case it would be possible for the AUTO_CLOSE option to end up as True.  We're going to look at using the setup script to set this back to False in such a case.
     
    And just to confirm: we recommend you set this item to False.
    0

Vous devez vous connecter pour laisser un commentaire.