Transfer.CopyAllRoles Property

Gets or sets the Boolean property value that specifies whether all the SQL Server roles are copied from the source database to the target database in the transfer operation.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)

Syntax

'Declaration
Public Property CopyAllRoles As Boolean
    Get
    Set
'Usage
Dim instance As Transfer
Dim value As Boolean

value = instance.CopyAllRoles

instance.CopyAllRoles = value
public bool CopyAllRoles { get; set; }
public:
property bool CopyAllRoles {
    bool get ();
    void set (bool value);
}
member CopyAllRoles : bool with get, set
function get CopyAllRoles () : boolean
function set CopyAllRoles (value : boolean)

Property Value

Type: System.Boolean
A Boolean value that specifies whether SQL Server roles are copied in the transfer operation.
If True, all SQL Server roles are copied from the source database to the target database. Otherwise, False (default).