SQL Server has no single "restore off" switch for an instance or a database; instead you disable restoration by removing the permissions and access paths that restores depend on. The straightforward approach is to deny the RESTORE DATABASE and RESTORE LOG permissions to the accounts that could perform them, keep the target files and service accounts under control, and make sure no one holds dbcreator, sysadmin, or the bulk-admin equivalents. If you need to block a specific restore already in flight, kill the restoring session. This guide walks through each layer, from a permissions-only lockdown to a service-level block, in a workable order, and explains how to verify that restores actually fail.

The query can be read two ways, so a quick clarification helps. "Disable database restoration" could mean (a) prevent anyone from restoring databases to a given SQL Server instance or overriding a given database, or (b) stop a restore that is currently running. Both are covered below, because in practice an administrator usually needs both the ongoing block and the emergency stop. Neither procedure uninstalls SQL Server or puts a database into a read-only mode; restoring a database is a server-level operation, so the controls belong at the server and permission level, not on individual tables.

What a restore actually requires

A successful restore needs three things to line up: permission to issue the restore, a target it can write to, and a backup it can read. Blocking just one of those is usually enough to stop the operation, and blocking all three is what makes the block durable.

Permission is checked first. To restore a database, a login needs CREATE DATABASE-level rights on the instance. In practice that means membership in the fixed server roles dbcreator or sysadmin, or explicit RESTORE DATABASE permission granted at the server scope. To restore transaction logs and recover a database to a point in time, the login also needs RESTORE LOG. A login that has only db_owner on an existing database cannot restore it, because restoring overwrites the database and needs server-level authority.

The target matters because a restore writes files, and SQL Server runs under a service account. If that service account can write to a data directory, a restore can create or overwrite files there. If the files are locked or the account lacks write access, file-based restores fail. The backup source matters because a restore has to read a .bak or .trn file from a path the service account can reach. Deny read access to backup folders and you cut the input.

One nuance worth stating plainly: restore permission is not the same as backup permission. A login can be allowed to run backups without being able to restore, and the reverse is also true. Deny restore rights without touching backup rights if backup operations must continue.

Prerequisites and decision points

Before changing permissions, confirm four things. First, identify who currently holds restore-capable roles by querying role membership; this is the population you will actually be restricting. Second, decide whether the block is instance-wide or specific to one database. An instance-wide block is done with server-level permissions and role membership; a database-specific block is done by removing that database's restore-capability from the accounts that could target it, which usually still means server-level changes. Third, confirm you have a sysadmin login separate from the accounts you are about to restrict, because a permissions lockdown can otherwise lock you out. Fourth, identify whether SQL Server Agent jobs, maintenance plans, or application accounts perform legitimate restores, and exempt or redesign those before you cut permissions.

Stop and involve a qualified database administrator if the instance supports production systems, replication, log shipping, or Always On availability groups. Those features perform restores and re-seeds internally, and a blanket permission change can break them. Also stop if the restore you are trying to stop is part of a vendor-supported disaster-recovery drill whose runbook you cannot verify.

Step-by-step: block restores with permissions

This is the primary method and the one to use unless you have a reason to go further. It works on current SQL Server versions generally, including SQL Server 2019 and 2022, and the permission structure is stable across those releases. Run these as a sysadmin.

1: Inventory restore-capable logins. Query sys.server_role_members joined to sys.server_principals to list members of sysadmin and dbcreator, and query sys.server_permissions for explicit RESTORE DATABASE and RESTORE LOG grants. Record the results; that list is your scope. 2: Remove restore-capable fixed-role membership from accounts that should not restore. For each such login, run ALTER SERVER ROLE dbcreator DROP MEMBER [login];. Remove sysadmin membership sparingly and only where you have a replacement administrator. 3: Deny the explicit restore permissions where they were granted directly. Use DENY RESTORE DATABASE TO [login]; and DENY RESTORE LOG TO [login]; at server scope. A deny overrides a grant, so this closes the direct-grant path even if the account retains other rights. 4: Use a server-level deny for broad protection. If you want to block a class of logins rather than named accounts, create a server role, add the affected logins, and apply the deny to the role. Avoid denying to public, because that affects every login including administrators and can produce confusing failures in unrelated operations. 5: Lock the file layer. Restrict NTFS permissions on the default data and backup directories so the SQL Server service account can read its normal files but ordinary users cannot place backup files there. A restore from a path the service account cannot read fails at the read stage. 6: Restrict backup source access. Remove read access to backup share folders for everyone except the service account and the backup operators who legitimately produce backups. This is often the practical control that matters most, since a copied backup file is the usual way an unauthorized restore gets attempted. 7: Verify. Attempt a restore as a restricted login and confirm the error. A permission block typically returns a message stating the login lacks RESTORE permission or is not a member of the required role. That specific failure is the success signal; a file-not-found or access-denied-to-file error means you blocked a different layer and should check whether permission is still open.

Expect a short interruption window if you change role membership on a busy instance, because active sessions holding the role may fail on their next restore attempt. That is the intended behavior, but schedule the change accordingly.

Step-by-step: stop a restore that is already running

If a restore is in progress and you need it to stop, the running operation is a session. Identify it rather than guessing.

1: Find the restoring session with SELECT session_id, command, percent_complete, start_time FROM sys.dm_exec_requests WHERE command LIKE 'RESTORE%';. 2: Confirm the session against sys.dm_exec_sessions and the login name, so you do not terminate an unrelated process that merely has "RESTORE" in its command text. 3: Issue KILL <session_id>;. SQL Server rolls back the incomplete restore and leaves the target database in a restoring or recovery state that must be resolved. 4: Check the outcome by querying the database state and reading the SQL Server error log and the RESTORE-related messages for the killed session. The expected result is an aborted restore and an error message naming the termination. 5: Resolve the leftover state. A database stuck in RESTORING may need RESTORE DATABASE ... WITH RECOVERY or WITH NORECOVERY depending on the recovery plan, or it may need to be dropped if it was a fresh target. Do not assume the kill leaves a clean, usable database.

If the restore is already far enough along that it has overwritten the target database files, killing the session stops the process but does not bring back the prior state. The pre-existing data is gone once files are replaced. That is why the permission block is the real control and the kill is the emergency brake.

Blocking restores at the service and instance level

For a stronger boundary, change what the SQL Server service can do. The service account is the identity that performs file writes, so restricting its filesystem permissions is an effective block: if the service account cannot write to the data directory, no restore can place files there. This is a heavier change and carries risk.

One option is to run the SQL Server service under a low-privilege account with write access limited to its required directories. SQL Server requires specific permissions on its data, log, and backup folders, and the exact set is documented per version; changing it without that list invites startup failures. Test on a non-production instance first. A second option is to run the instance with the minimum required services and keep restoration off machines that host only read-only replicas or reporting copies, so that any restore must go through a dedicated, audited instance. A third option is to restrict access at the host firewall or network layer so that only administrators can reach the instance's management endpoint, which limits who can attempt a restore at all.

Expect these controls to be partial. A sysadmin who reaches the instance can usually re-grant permission, and a service account with broad filesystem rights can still write files. The service-level block defends against accidental and low-privilege restores, not against a determined administrator.

Verifying that restoration is actually disabled

Verification should test the permission path and the file path separately, because passing one does not prove the other.

For the permission path, connect as a restricted login and run a restore against a scratch database name. Expect a permission error, not a file error. Record the exact message and its error number so later troubleshooting can distinguish a permission block from a file block. For the file path, from a standard user context, attempt to copy a .bak into the data directory and confirm it fails; if it succeeds, the filesystem control is not in place. For the admin path, confirm that a named sysadmin account separate from the restricted ones can still perform an authorized restore, so that the block does not become an outage during recovery.

A compact check you can re-run after changes is a pair of queries: one listing current role membership and one listing explicit restore grants. If the expected accounts no longer appear, and the scratch restore fails with the permission error, the block is working. Re-check after any patch, role change, or new application deployment, since installers sometimes re-create logins with elevated roles.

Trade-offs, limits and common failures

The permission block is cheap, reversible, and testable, which is why it is the default. Its weakness is the same as its strength: it depends on a sysadmin who can undo it. If the threat model includes a privileged insider, permission alone is insufficient.

Denying to public is a common mistake. It blocks every login including administrators and surfaces as unexpected failures in operations that share the same permission namespace, making diagnosis harder than the problem it solves. Name specific principals or roles instead.

Locking the filesystem too aggressively is the other frequent failure. SQL Server may fail to start or fail to create its own files if the service account loses access to a required directory, and the symptom appears as a startup or recovery error rather than a clear permissions message. Keep the filesystem block inside the directories SQL Server already owns, and keep a documented exception list.

A stale restore can also masquerade as a permission failure. If a database is stuck in RESTORING, a new restore attempt fails for state reasons rather than permission. Check database state before concluding the block worked.

Finally, backup and restore are asymmetric permissions, and the block should be scoped to restore only. An organization that needs nightly backups but wants no ad hoc restores gets that with a restore-only deny; one that also wants to prevent backup-file exposure must handle the file layer separately.

Where this matters most in practice

The block is most useful on instances that host read-only or reporting copies, where an accidental restore from a developer's local backup can replace production-like data. It is also relevant when handing an instance to a team that should query data but not manage it, and when an application installer creates logins with dbcreator that nobody intended. In each case, the permission inventory, the deny, and the file-layer restriction can be applied in minutes and verified with a scratch restore. Keeping the list of restore-capable accounts written down and reviewed is often what keeps the block from eroding silently over time.