SQL Admin Provider::RevokeDBAccess

The RevokeDBAccess method allows you to revoke the access of a SQL account for a particular database on a Windows NT or Windows 2000 server. This removes the user to the public role for that database. This is separate from the RemoveUserfromRole method as it does not reliably affect the public role. The user must already have been granted access to the SQL server by means of AddLogin or GrantLogin.

 Sample Code
 Applies To
 See Also