Which View Shows Domain Accounts?

  • Hi folks,

    I'm digging for information for the auditors.

    In 2005, *local* logins are stored in master's sys.sql_logins, but domain accounts are not in that view.

    Which table/view contains the logins for domain accounts?

    Thanks! John

  • SELECT * FROM sys.server_principals

    WHERE type IN ('U', 'G')

  • Perfect, Ten Centuries. This is exactly what I needed! We do have to keep those auditors happy 🙂

    Thanks very much. John

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

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