Solved

How to assign RESTORE DATABASE Permissions

Posted on 2008-10-01
4
4,031 Views
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:

RESTORE DATABASE myDatabase
   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'.
0
Comment
Question by:hoyaabanks
  • 2
4 Comments
 
LVL 142

Expert Comment

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

Author Comment

by:hoyaabanks
ID: 22616919
How Do I add CREATE DATABASE permissions to the instance?
0
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 22617331
you run a GRANT statement:
msdn.microsoft.com/en-us/library/ms178569.aspx
GRANT CREATE DATABASE TO youruser

Open in new window

0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
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…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

774 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