Unable to restore a database. SQL Server says I do not have permission to restore the database even though I am the db owner

Posted on 2003-03-21
Medium Priority
Last Modified: 2012-06-21
When I try to restore a database, I get the following message " "User does not have permission to to RESTORE database D_AppCenter_Mail" RESTORE DATABASE is terminating abnormally." Can someone tell me why am I getting this message even though I am the db owner for that database?
Question by:deewani
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
LVL 69

Expert Comment

by:Scott Pletcher
ID: 8183856
You are restoring over an existing db, right?  I mean, the db wasn't deleted first and then you attempted to restore it.

Author Comment

ID: 8183865
Yes. It exists.

Accepted Solution

ayufans earned 80 total points
ID: 8184967
well.. because it exist. You can't just restore over an existing database. You either delete the existing database first or you restore it as a new db with different name.
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.


Author Comment

ID: 8186324

I was able to before. I would not give me "User does not have permission to restore database" error if I was not allowed to. See what I did is I created a backup of the database on a certain drive as .bak file. Meanwhile, I played with the data in the tables a little bit. Now I want the old data back so I am just trying to restore it. Why wouldn't it allow me to do it? Does not make sense that because I have an existing database it would not allow me to. But, I will try renaming the database and see if it allows me to.
LVL 34

Expert Comment

ID: 8186736
You CAN restore over existing databases--you just add the REPLACE option on your restore command.

deewani, are you sure you have security rights to restore the database--maybe your rights have changed since the last time you did the restore?

LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 8194006
I agree with arbert that you can restore very well over existing database. Now, the error message that you provided indicates that you are not connected with good permissions:
<from SQL BOL>
If the database being restored does not exist, the user must have CREATE DATABASE permissions. If the database does exist, RESTORE permissions default to members of the sysadmin fixed server role and the db_owner fixed database role.

LVL 34

Expert Comment

ID: 8711733
What's up with this qustion?
LVL 34

Expert Comment

ID: 8711735
What's up with this question?

Expert Comment

ID: 9275632
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.
LVL 12

Expert Comment

ID: 11183631
No comment has been added to this question in more than 268 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup topic area:
   Accept: ayufans http:#8184967

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

EE Cleanup Volunteer

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
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 retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Suggested Courses

771 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