Solved

restore and backup SQL database

Posted on 2014-01-20
3
363 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how the fundamental information of how to create a table.

911 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now