Partager via


ServerRoleExtender.OwnerForUI Property

Definition

This property is used in Server Role relational engine task UI. If someone sets Owner property to string.Empty, that means Owner is dirty and is not null. At that point SMO also scripts the Authorization-part of create T-SQL. Hence, we set Owner property to 'null' in that case, just before Create() in order to skip scripting Authorization-part of Create T-SQL.

[Microsoft.SqlServer.Management.Sdk.Sfc.ExtendedProperty]
public string OwnerForUI { get; set; }
[<Microsoft.SqlServer.Management.Sdk.Sfc.ExtendedProperty>]
member this.OwnerForUI : string with get, set
Public Property OwnerForUI As String

Property Value

Attributes

Applies to