I'm cleaning up permissions on my SQL Server 2000, and I want to verify that a particular account still has sysadmin privileges.
What non-destructive tasks can only sysadmins do that I can use to confirm this?
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
You don't have to perform any task (destructive or non-destructive) at all.
You can use the built-in function
Note that for roles other than
You can use the built-in stored procedure
Or a complete list of all explicit members of all server roles:
For SQL Server 2000 there is also the option to sort or filter the result set using:
For SQL Server 2005+ there is already a system view to be queried directly:
One way is to try executing something with xp_cmdshell such as ping. If you don't have this enabled you can enable it briefly for the test then disable it again.
You could use that account to create another login , and grant it sysadmin privileges.