Orphaned Windows authentication

  • Is anyone know an easy way to identify the orphaned Windows authentication on SQL 2000 server ?

    What hapened is we use NT authentication for several of iur SQl server. As employee terminated, their NT accounts were removed from the NT level but this never happen to their SQL sever account.  I need find a way to identified these 'orphaned' SQL account and purge them.

     

    Thx, 

  • John,

    sp_validatelogins

    Tom

     

  • -- display orphaned users

    EXEC sp_change_users_login 'Report'

    -- drop a user

    sp_droplogin webuser1

    --- fix a user

    EXEC sp_change_users_login 'Auto_Fix', 'webuser1'

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

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