Solved

restore and backup SQL database

Posted on 2014-01-20
3
370 Views
Last Modified: 2014-01-20
Hey

I would like to give one of my users rights to restore and backup a specific database.

Using the SQL Management Console

MS SQL2010

How to?

Thx

Mike
0
Comment
Question by:mikeydk
3 Comments
 
LVL 10

Expert Comment

by:HuaMinChen
ID: 39793604
You should use sa account to do backup/restore.
0
 
LVL 52

Assisted Solution

by:Carl Tawn
Carl Tawn earned 200 total points
ID: 39793623
>> You should use sa account to do backup/restore
No you shouldn't.

The minimum permissions your user needs for BACKUP/RESTORE is to be a member of the db_backupoperator fixed server role.
0
 
LVL 2

Accepted Solution

by:
Johan Ohlsson earned 300 total points
ID: 39793672
The user needs to be the dbo (not to confuse with the db_owner database role) in order to restore into an existing database. Dbo can be changed by sp_changedbowner

See link for : How to restore

http://technet.microsoft.com/en-us/library/ms177429.aspx

You can use the script to create a user for restore,Create Minimum permission backup restore role User / Operator DB for SQL 2008. In the attach file
db-backup-operator.sql
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

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…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

830 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