can't disable login

  • I can't disable a login that is in one of my DB's.

    I only see the disable if the login is under 'security'.. For the logins I need to disable they are under the db's so there is no disable option.

    I thought I would use a script to disable - but that isn't working either...

    ALTER LOGIN [ADSERVER\MYUSER] DISABLE

  • ALTER LOGIN [ADSERVER\MYUSER] DISABLE will disable the account for the whole SQL instance

    If you want to remove a user from a specific database:

    USE [MyDatabase]

    DROP USER [MyDomain\ThisUser]

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply