DacDeployOptions.DeployDatabaseInSingleUserMode Property

Definition

Get or set boolean that specifies whether the system will acquire single-user mode on the target database during the duration of the deployment operation.

public bool DeployDatabaseInSingleUserMode { get; set; }
[Microsoft.SqlServer.Dac.OptionDescription(typeof(Microsoft.Data.Tools.Schema.Sql.CommandLine.CommandLineResources), "DeployDatabaseInSingleUserMode")]
public bool DeployDatabaseInSingleUserMode { get; set; }
member this.DeployDatabaseInSingleUserMode : bool with get, set
[<Microsoft.SqlServer.Dac.OptionDescription(typeof(Microsoft.Data.Tools.Schema.Sql.CommandLine.CommandLineResources), "DeployDatabaseInSingleUserMode")>]
member this.DeployDatabaseInSingleUserMode : bool with get, set
Public Property DeployDatabaseInSingleUserMode As Boolean

Property Value

True to acquire single-user mode during deployment; otherwise, false. Default is false.

Attributes

Remarks

The database will be returned to multi-user mode after all changes are applied. Database may remain in single-user mode if an error occurs during execution.

Applies to