Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DropMember Method

DropMember Method

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 DropMember method removes the specified Microsoft SQL Server user, database role, or login from the role referenced.

object.DropMember(User)

object

Expression that evaluates to an object in the Applies To list.

User

For the DatabaseRole object, a string that specifies an existing database user or role by name. For the ServerRole object, a string that specifies an existing SQL Server login by name.

HRESULT DropMember(SQLDMO_LPCSTR NewValue);

Configuring role membership by using the DropMember method of the Database and ServerRole objects requires appropriate permission.

For the Database object, the database user mapped to the SQL Server login used for SQLServer object connection must be a member of the fixed database role db_owner.

For the ServerRole object, the SQL Server login used for SQLServer object connection must be a member of the role from which the specified login will be dropped.

Community Additions

ADD
Show:
© 2015 Microsoft