IDatabasePerformanceFacet.AutoClose IDatabasePerformanceFacet.AutoClose IDatabasePerformanceFacet.AutoClose Property

Definition

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

public:
 property bool AutoClose { bool get(); void set(bool value); };
[Microsoft.SqlServer.Management.Sdk.Sfc.DisplayDescriptionKey("Database_AutoCloseDesc")]
[Microsoft.SqlServer.Management.Sdk.Sfc.DisplayNameKey("Database_AutoCloseName")]
public bool AutoClose { get; set; }
Public Property AutoClose As Boolean
Property Value

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.

Remarks

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

Applies to