Orphaned users versus loginless users

  • Hi forum,

    a short question:

    What is the difference between orphaned users and loginless users and how can I seperate them from eachother?

    Is it correct to say that orphaned users don't have an instance login but do have a db login and that loginless users have an instance login but not a db login since that goes via the application that impersonates a user?

    thanks in advance for helping me clearing this out.

    Vera

  • According to http://msdn.microsoft.com/en-us/library/ms175475.aspx

    "

    A database user for which the corresponding SQL Server login is undefined or is incorrectly defined on a server instance cannot log in to the instance. Such a user is said to be an orphaned user of the database on that server instance. A database user can become orphaned if the corresponding SQL Server login is dropped. Also, a database user can become orphaned after a database is restored or attached to a different instance of SQL Server. Orphaning can happen if the database user is mapped to a SID that is not present in the new server instance.

    "

    Both, users with wrong sid and users without login, no matter whether droped or just not exist after restore, are orphaned users

  • Vera-428803 (2/14/2013)


    Is it correct to say that orphaned users don't have an instance login but do have a db login and that loginless users have an instance login but not a db login since that goes via the application that impersonates a user?

    There's no such thing as a database login (not in 2008 anyway)

    Orphaned users are ones that should have an associated login, but don't because of the DB being moved. Loginless users never had an associated login and shouldn't have one.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

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

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