This seems like a question that should be common enough, but I can't find anything on it. Two questions, really:

  • How can I determine which account(s) have Windows authentication access to an instance of SQL Server 2008?
  • Can I change that set of users without being able to log in to the SQL Server instance?

Thanks very much in advance!

link|improve this question

80% accept rate
feedback

1 Answer

up vote 3 down vote accepted

The sys.server_principals view contains all the logins with access to the instance. You can filter by type U and G to get just Windows logins and Windows groups.

You can use the the T-SQL commands CREATE LOGIN, ALTER LOGIN and DROP LOGIN to manage logins without using the GUI. There are similar commands available for database users.

http://technet.microsoft.com/en-us/library/ms188786.aspx
http://technet.microsoft.com/en-us/library/ms189751.aspx
http://technet.microsoft.com/en-us/library/ms173463.aspx

link|improve this answer
I finally managed to get it working with your help - thank you very much! – ladenedge Jun 21 '10 at 22:42
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.