[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

How to assign RESTORE DATABASE Permissions

Posted on 2008-10-01
4
Medium Priority
?
4,242 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
[X]
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
4 Comments
 
LVL 143

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 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 2000 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

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

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

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

656 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