Drop Login

  • Hello All

    I want to write a stored procedure that will drop a login. But first, I want to check to see if it exists. What is the table name that I query to get the logins?

    Thanks in advance for your help

    Andrew SQLDBA

  • sys.syslogins

    Susantha

  • Thank You

    I could not think of that. Maybe it was too simple or something.

    Feels like a monday after a long weekend. My brain is not working clearly

    Thanks again

    Andrew SQLDBA

  • What about the Users in a specific database? What table are they stored in?

    I am seeing a user that is in a database that I just restored. I need to drop that user account

    Thanks

    Andrew SQLDBA

  • sys.sysusers

    Susantha

Viewing 5 posts - 1 through 4 (of 4 total)

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