"DeleteUserRole" Stored Procedure

Description:

This stored procedure deletes a user from the specified security role. Roles are defined on a per-portal basis in the Roles table.

Definition:
    
    CREATE PROCEDURE DeleteUserRole
    (
        @UserID int,
        @RoleID int
    )
    AS

    DELETE FROM
        UserRoles

    WHERE
        UserID=@UserID
        AND
        RoleID=@RoleID
        
Database Tables Used:

UserRoles:  The UserRoles table provides a many-to-many connection between portal security roles (defined in the Roles table) and users (defined in the Users table). Using the UserRoles table, each user may belong to multiple roles and and each role may have multiple users as members.

The UserRoles table has no primary key.