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)

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

Property Value

Type: System.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.

Return to top
Show: