共用方式為


SqlDeploymentOptions.DeployDatabaseInSingleUserMode 屬性

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.

命名空間:  Microsoft.SqlServer.Dac.Deployment
組件:  Microsoft.SqlServer.Dac.Extensions (在 Microsoft.SqlServer.Dac.Extensions.dll 中)

語法

'宣告
Public ReadOnly Property DeployDatabaseInSingleUserMode As Boolean 
    Get
'用途
Dim instance As SqlDeploymentOptions 
Dim value As Boolean 

value = instance.DeployDatabaseInSingleUserMode
public bool DeployDatabaseInSingleUserMode { get; }
public:
property bool DeployDatabaseInSingleUserMode {
    bool get ();
}
member DeployDatabaseInSingleUserMode : bool
function get DeployDatabaseInSingleUserMode () : boolean

屬性值

型別:System.Boolean
True to acquire single-user mode during deployment; otherwise, false. Default is false.

備註

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.

請參閱

參考

SqlDeploymentOptions 類別

Microsoft.SqlServer.Dac.Deployment 命名空間