Share via


DatabaseRole.Drop Method

Drops the database role.

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

Syntax

'Declaration
Public Sub Drop
'Usage
Dim instance As DatabaseRole

instance.Drop()
public void Drop()
public:
virtual void Drop() sealed
abstract Drop : unit -> unit  
override Drop : unit -> unit
public final function Drop()

Implements

IDroppable.Drop()

Examples

Managing Users, Roles, and Logins

See Also

Reference

DatabaseRole Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Database-Level Roles

DROP ROLE (Transact-SQL)