Usually not, by default
No. In SQL Server, membership in the db_owner fixed database role doesn’t grant RESTORE permission by default. Microsoft’s documentation says the default RESTORE permission belongs to members of the sysadmin and dbcreator fixed server roles, plus the owner of the database.
Who can restore
For a database that already exists on the instance, these can restore it:
- Members of the sysadmin fixed server role
- Members of the dbcreator fixed server role
- The owner of the database, the principal mapped to the
dbouser
If the database name doesn’t exist yet on the instance, the user needs CREATE DATABASE permission.
Why db_owner doesn’t count
Microsoft explains that membership in a fixed database role can only be checked when the database is accessible and undamaged. Restores often happen when it isn’t. So the default permission is tied to server roles and database ownership, which the server can check without relying on the database itself.
Check your own roles
Run this to see whether your login holds the relevant roles. Run it while connected to the database you want to restore, because IS_MEMBER checks the current database:
SELECT
IS_SRVROLEMEMBER('sysadmin') AS is_sysadmin,
IS_SRVROLEMEMBER('dbcreator') AS is_dbcreator,
IS_MEMBER('db_owner') AS is_db_owner;
A 1 means you’re a member, and a 0 means you aren’t. To see who owns a database, run:
SELECT name, SUSER_SNAME(owner_sid) AS owner_login
FROM sys.databases
WHERE name = N'Sales';
Options when you need a restore
- Ask a sysadmin or DBA to run the restore. This is usually the safest route.
- Grant the dbcreator role, or change the database owner. Both give broad control, so decide deliberately and use the smallest change that works. To change the owner, use a statement such as
ALTER AUTHORIZATION ON DATABASE::Sales TO [SalesAdmin];, substituting your own database and login names.
Backups are a separate permission
Taking a backup has its own permission rules, so check those too when you plan who handles recovery.
Azure SQL Database
In Azure SQL Database, point-in-time restores run through the Azure portal, the Azure CLI, Azure PowerShell, or the REST API. The check happens at the Azure level, not through the T-SQL database roles described above.