Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

query to get the count of users and logins

$
0
0
Hi ,

I need a query for getting the list of users in a server(1 application) and list of logins as well .

use <userdefined database>
go
select count(*) from sysusers
go
select count(*) from syslogins
go

is the above statements are right or wrong ,if not , please guide me in getting the count of users and logins from the current server or db.

Viewing all articles
Browse latest Browse all 13329

Trending Articles