Delen via


IncludeUsers Property

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

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

Syntax

object
.IncludeUsers [=value]

Parts

  • object
    An 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.

Applies To: