Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Orphan Logins

Author  Topic 

kid_on_the_block
Posting Yak Master

172 Posts

Posted - 2007-04-18 : 11:16:42
Hi

Just logged on to one of the SQL Servers.I see a lot of logins there who dont have any database access. Its a SQL Server 2000 box.

Can someone please help me with a script that would get me a list of such Orphan Logins (not orphan users).

Thanks

Regards

dinakar
Master Smack Fu Yak Hacker

2507 Posts

Posted - 2007-04-18 : 12:05:18
Check if this helps: http://www.sqlservercentral.com/scripts/viewscript.asp?scriptid=682


************************
Life is short. Enjoy it.
************************
http://weblogs.sqlteam.com/dinakar/
Go to Top of Page

kid_on_the_block
Posting Yak Master

172 Posts

Posted - 2007-04-18 : 12:15:44
No that script does not.
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-04-18 : 15:31:54
Run sp_helplogins, you should get when you need.
Go to Top of Page
   

- Advertisement -