Export (0) Print
Expand All

IDatabasePerformanceFacet.AutoClose Property

Gets or sets a value that indicates whether the database will be closed automatically after the last user exits.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

[DisplayNameKeyAttribute("Database_AutoCloseName")]
[DisplayDescriptionKeyAttribute("Database_AutoCloseDesc")]
bool AutoClose { get; set; }

Property Value

Type: Boolean
A Boolean value that indicates whether the database will be closed automatically after the last user exits. Returns True if the database will be closed; otherwise, False.

This property corresponds to the AUTO_CLOSE TSQL argument of ALTER DATABASE SET OPTIONS.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft