IncludeUsers Property

SQL-DMO

SQL-DMO

IncludeUsers Property

The IncludeUsers property controls handling of Microsoft® SQL Server™ database user records in a transfer operation.

Applies To
Transfer Object
Syntax

object.IncludeUsers [= value]

Parts

object

Expression that evaluates to an object in the Applies To list

value

TRUE or FALSE

Data Type

Boolean

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetIncludeUsers(LPBOOL pRetVal);

HRESULT SetIncludeUsers(BOOL NewValue);

Remarks

If TRUE, all users in the source database are created in the target database as part of the transfer operation.

If FALSE, no users are created in the target database.