How to assign RESTORE DATABASE Permissions

Posted on 2008-10-01
Last Modified: 2012-05-05
Hello, I have created a new database with Network Solutions.  THey have created a SQL database user for me which I have set to DB Owner and has the same permissions as dbo.

I am trying to restore this empty database on the server with this script:

   FROM DISK = 'C:\Inetpub\wwwroot\SQL2005_460116_myDatabase_backup.bak'

I get this error:

Msg 3110, Level 14, State 1, Line 2
User does not have permission to RESTORE database 'myDatabase'.
Msg 3013, Level 16, State 1, Line 2
RESTORE DATABASE is terminating abnormally.

What permisison do I have to set to be able to restore myDatabase.  I only have access to that database, but I have full access to it including security.  Do I need access to master?

User does not have permission to RESTORE database 'myDatabase'.
Question by:hoyaabanks
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 22616710
to RESTORE a database, you need CREATE DATABASE permissions on the instance.

Author Comment

ID: 22616919
How Do I add CREATE DATABASE permissions to the instance?
LVL 143

Accepted Solution

Guy Hengel [angelIII / a3] earned 500 total points
ID: 22617331
you run a GRANT statement:

Open in new window


Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question