BackUp and Restore Privileges to User

  • Is there in option in SQL server 2005, to create a new login and give him the privileges to take BackUp of Databases and also Resotre Databases only, and no other rights?

    Bhavesh



    [font="System"]Bhavesh Patel[/font]

    http://bhaveshgpatel.wordpress.com/
  • You can provide that user with db_backupoperator fixed database role on all databases which that user will have the privilages to backup.



    Pradeep Singh

  • Hi Pradeep,

    If I give user 'db_backupoperator' database role, it allows the user to take backup. -- Half the Problem solved.

    But It does not allow the user to Restore the Database! So, I guess more privileges are required?

    Bhavesh



    [font="System"]Bhavesh Patel[/font]

    http://bhaveshgpatel.wordpress.com/
  • I gave dbcreator fixed server role to the user i created and this user was able to restore the database.

    can u try that out.



    Pradeep Singh

  • Hey, it works now. The new user can restore the database after being assigning 'dbcreater' server role.

    But is this the optimal solution?

    Because I want to give the user bare minimum privileges, so that he can perform backup and restore only.

    Bhavesh



    [font="System"]Bhavesh Patel[/font]

    http://bhaveshgpatel.wordpress.com/
  • when we are restoring a database, we are essentially creating a new database and hence i tried for dbcreator role. I think this should be an optimal solution.



    Pradeep Singh

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply