“Just give them admin” closes an access ticket in seconds. The permission can still be there years later. So since when does database access come with a crown?
Short answer: too many SQL Server sysadmins is a risk because sysadmin can perform any activity on the instance, and permissions cannot be denied to its members. Give each person and application only the access its work requires, start with one critical instance, and review access on a schedule.
At a glance
- Sysadmin is all-powerful. Members can perform any activity on the instance, and a DENY does not restrict them.
- The shortcut roles are broad too. db_owner can manage and drop its database; db_datareader reads every user table and view.
- A list of sysadmin members is not a full access review. Windows groups, other powerful roles, impersonation and vendor accounts all count.
- Fix it in stages: find the owner, build a narrower role, test normal work and scheduled jobs, change in a controlled window, keep a recovery path.
- Make “temporary” mean something: every elevated account needs an owner and an end date that someone enforces.
What does sysadmin actually allow in SQL Server?
Microsoft describes sysadmin as a fixed server role whose members can perform any activity in the server, and states that permissions can’t be denied to members of this role. SQL Server stops checking permissions for a sysadmin, so adding a DENY on a sensitive table to someone who is still in sysadmin does not create the restriction you intended.
Sysadmin is not the only door to that room. Microsoft says to treat securityadmin as equivalent to sysadmin, and to treat anyone with CONTROL SERVER as sysadmin for security purposes, because there are several ways to elevate from it. On a SQL Server instance, members of the local computer administrators group can always elevate to sysadmin too.
These are SQL Server roles, separate from Windows administrator access, and managed platforms differ. Azure SQL Database, for example, doesn’t have the traditional fixed server roles such as sysadmin; it has its own server roles. Check your platform before you translate an access policy into role assignments.
Are db_owner and db_datareader a safer shortcut?
Smaller, but still broad. Here is what Microsoft says each role allows, and why each one is often more than the task needs.
| Role | What it allows (Microsoft Learn) | Why it is often too much |
|---|---|---|
| sysadmin | Any activity in the server; permissions can’t be denied to members | One mistake or one stolen credential can affect every database on the instance |
| securityadmin | Manage logins and grant, deny and revoke permissions | Microsoft says to treat it as equivalent to sysadmin |
| db_owner | All configuration and maintenance activities on the database, including dropping it in SQL Server | A person who needs a report does not need to be able to drop the database |
| db_datareader | Read all data from all user tables and views | Exposes tables the task never needed, such as payroll |
How does temporary access turn into permanent risk?
A support engineer needs to resolve an incident. A vendor asks for broad permissions during an installation. An application works when tested as an administrator, so that becomes its production identity. Each decision is convenient, and nobody remembers which privileges are still needed.
Excess access gives an accidental command or a stolen credential more room to do harm. Shared admin logins also make it hard to say who did what. Backups help you recover, but they cannot undo the disclosure of data an overprivileged account could read.
How do you find out who really has admin access to SQL Server?
Start with these read-only queries. They use documented catalog views and show direct memberships and grants.
-- 1. Members of sysadmin and securityadmin
SELECT r.name AS role_name, p.name AS member_name, p.type_desc, p.is_disabled
FROM sys.server_role_members AS rm
JOIN sys.server_principals AS r ON r.principal_id = rm.role_principal_id
JOIN sys.server_principals AS p ON p.principal_id = rm.member_principal_id
WHERE r.name IN (N'sysadmin', N'securityadmin')
ORDER BY r.name, p.name;
-- 2. Principals granted CONTROL SERVER directly
SELECT pr.name, pr.type_desc, pe.state_desc
FROM sys.server_permissions AS pe
JOIN sys.server_principals AS pr ON pr.principal_id = pe.grantee_principal_id
WHERE pe.permission_name = N'CONTROL SERVER'
AND pe.state_desc IN (N'GRANT', N'GRANT_WITH_GRANT_OPTION');
-- 3. Broad database roles (run in each database)
SELECT r.name AS role_name, m.name AS member_name, m.type_desc
FROM sys.database_role_members AS drm
JOIN sys.database_principals AS r ON r.principal_id = drm.role_principal_id
JOIN sys.database_principals AS m ON m.principal_id = drm.member_principal_id
WHERE r.name IN (N'db_owner', N'db_datareader', N'db_datawriter')
ORDER BY r.name, m.name;
Treat the results as a starting point, not a finished review. A Windows group appears as one line, not as its members. Permissions can also arrive through impersonation, application roles or stored procedures that run as another user. Microsoft notes that SQL Server doesn’t manage Windows group membership, so it can’t reliably report permissions that come from groups. Reconcile the database inventory with your directory.
For each identity, record an owner, a business purpose, an approval and a review or expiry date. Include human users, service accounts, vendor accounts and the groups that grant them access.
What should replace “just make them an admin”?
Start each request with four facts: the database, the task, the data required and how long the access is needed. Build reusable roles around the work, then assign approved people or application identities to them.
- Reporting users: SELECT on approved views or tables through a scoped role. A sales report does not justify access to payroll.
- Applications: only the operations the application needs. OWASP recommends separate accounts per application, separate accounts for production and non-production, and no administrative or built-in superuser accounts for applications.
- Administrators: a separate privileged identity for approved maintenance, with temporary elevation where your access system supports it, and an ordinary account for everyday work. Microsoft also suggests considering CONTROL SERVER for DBA accounts instead of sysadmin, because CONTROL SERVER can be restricted with DENY and sysadmin cannot.
How do you remove excess permissions without breaking applications?
- Identify the account owner and what the account actually does.
- Create a narrower role and test it against normal operations and scheduled jobs.
- Make the change in a controlled window and monitor for permission errors.
- Keep a documented recovery path, and preserve tested emergency access so a cleanup cannot lock out the people who handle recovery.
Where does privileged access management fit?
Privileged access management (PAM) combines policies and tools to control powerful accounts: approvals, temporary access, credential protection and a record of privileged activity. A password vault protects the credential, but it does not shrink the permissions that credential carries, so pair PAM with scoped database roles.
Use named identities for people. Microsoft recommends multifactor authentication for accounts that have machine-level access, including accounts that sign in over RDP. Confirm where MFA is actually enforced in your environment, and don’t assume a traditional SQL login gains it because a policy document says so. For MSPs, make client ownership and the scope of each support identity explicit.
Where should you start?
Pick one critical SQL Server instance. Identify its privileged accounts, resolve the ones with no known owner, and replace one unnecessary broad grant with tested, task-specific access. Track every exception until it is removed or justified. Then repeat on the next instance.
The next access request should come with a clear role. The crown can go back in the prop closet.
Get help
Everconnect Data Systems offers managed database services, which can include a regular access review alongside ongoing database care. See also our database security best practices and the free SQL Server Health & Risk Check (a self-assessment, no database access required).
Want a fixed-price starting point? The SQL Server Health Check is $499 per server: about 200 read-only checks across 10 risk areas, a scored report in 3 business days and a walkthrough with our team. The report includes logins with full control of the server (sysadmin or CONTROL SERVER). See an example report.
Frequently asked questions
Least privilege gives each person or application only the database permissions its assigned work needs, and no more. NIST defines it as restricting access to the minimum necessary to accomplish assigned tasks. It applies to human users and to service accounts, and it needs review as responsibilities change.
Sysadmin members can perform any activity on the instance, and Microsoft states that permissions can’t be denied to them. A mistaken command or a compromised login can therefore affect far more than the account’s intended task. Reserve the role for justified administrative needs.
Usually not. db_owner can perform all configuration and maintenance activities on a database, including dropping it in SQL Server. Reporting users and applications generally need narrower roles or explicit permissions matched to their work.
Review server role memberships, CONTROL SERVER grants, database roles and your directory groups, and include service and vendor accounts. A list of direct sysadmin members alone is incomplete because permissions can also arrive through Windows groups, impersonation and other grants.
Identify the account owner and what the account does, build a narrower role, and test it with normal operations and scheduled jobs. Change access in stages, monitor for permission errors, and keep a tested recovery path. Don’t remove broad access before you understand the dependencies.
Most routine application functions should use explicitly scoped permissions, not sysadmin. OWASP advises against administrative or superuser accounts for applications. If a vendor says sysadmin is required, ask which exact operations need it and whether it is only needed for installation or upgrades.
PAM helps govern powerful accounts through approvals, temporary elevation, credential protection and activity records. Confirm that it covers the database and the login methods you use. It works best paired with scoped database permissions, because a vault protects the credential, not the access it carries.
There is no single interval for every organization. Choose a documented cadence based on data sensitivity and privilege level, review privileged access more often than routine access, and also review when people join, change roles or leave, and when vendor work or applications end.
Related guides
- Who owns this database, and why did everyone stop making eye contact?
- Database security best practices every IT leader should know
- Independent SQL Server assessment: what a good one covers and delivers
- SQL Server without a DBA: the minimum maintenance checklist
- How long has your database been making that noise?
Updated October 27, 2026. Written by Nathan Jaskot, founder of Everconnect Data Systems, a US-based, veteran-owned database consulting firm founded in 2010. Technical facts were checked against Microsoft documentation on that date (sources below).
Sources (checked October 27, 2026)
- Microsoft Learn: Server-level roles
- Microsoft Learn: Database-level roles
- Microsoft Learn: Determine effective Database Engine permissions
- Microsoft Learn: SQL Server security best practices
- NIST: Least privilege
- OWASP: Database Security Cheat Sheet
- Microsoft Security: What is privileged access management?
About the author. Nathan Jaskot is the founder of Everconnect Data Systems, Inc., a US-based, veteran-owned database and technology consulting company he started in 2010. Everconnect works with SQL Server, PostgreSQL, MySQL, Oracle, Azure and AWS. Learn more about Everconnect.







