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.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2002-05-20 : 08:30:28
|
| sunil writes "Hi,I have an application and i want to write a SQL to show all the users in a database, who have logins also.ThanksSunil" |
|
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2002-05-20 : 09:25:25
|
| Well, a user in SQL is mapped to a login in SQL, so they ALL have logins.Try sp_helpuser and sp_helplogins. These are documented in Books Online. |
 |
|
|
Page47
Master Smack Fu Yak Hacker
2878 Posts |
Posted - 2002-05-20 : 10:02:26
|
| or do you mean to find all the users that are 'logged in' right now? if so, look at sp_help or sp_help2<O> |
 |
|
|
|
|
|