Home > Archive > MS SQL Server > January 2006 > Script to list Users with SA Role on the server









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Script to list Users with SA Role on the server
shub

2006-01-18, 8:23 pm

I am wanting to get a list of all the users on a SERVER who has the
System Administrator role assigned to their login. I was wondering if
there is a script or table(s) that I could refer to instead of looking
at all the individual login names. We are using SQL Server 2000.

Any help on this regard will be greatly appreciated.
Thanks

P. Ward

2006-01-18, 8:23 pm

You can use the Stored Procedure sp_helpsrvrolemember
to view the members of
a fixed server role.

ie.

EXEC sp_helpsrvrolemember
'sysadmin'


- Peter Ward
WARDY IT Solutions


"shub" wrote:

> I am wanting to get a list of all the users on a SERVER who has the
> System Administrator role assigned to their login. I was wondering if
> there is a script or table(s) that I could refer to instead of looking
> at all the individual login names. We are using SQL Server 2000.
>
> Any help on this regard will be greatly appreciated.
> Thanks
>
>

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com