Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Granting the permission to the user

Author  Topic 

rajajetti
Starting Member

5 Posts

Posted - 2010-07-16 : 01:53:45
Hi All,

I need to create a user in SQL Server 2005 Express Edition. That user should have the permission for taking and restoring the backup of database alone. He shouldn't have the admin rights and he shouldn't access the other databases also.

Is it possible. If it is kindly explain me how to do this.

Thanks in advance.

Regards

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-07-16 : 02:03:51
Try dbcreator:
quote:

Members of the dbcreator fixed server role can create databases, and can alter and restore their own databases.



Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

rajajetti
Starting Member

5 Posts

Posted - 2010-07-16 : 02:25:12
Thank you so much for your reply. I did as you said but when i am trying restore the database its giving the error is "Cannot access the specified path or file on the server.Verify that you have the necessary security priviliges and that the path or file exists"

Kindly help on this.

Regards.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-07-16 : 02:53:04
Did you verify the path and file?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

rajajetti
Starting Member

5 Posts

Posted - 2010-07-16 : 02:57:48
At the time of clicking add button in "Specify backup" window only i am getting the error.
Go to Top of Page

rajajetti
Starting Member

5 Posts

Posted - 2010-07-16 : 03:02:16
And any where can i need to give any permissions other than that "dbcreator" for user and any where for databse.


Regards
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-07-16 : 03:47:06
Please verify if sysadmin works for that user, just so that we know file permissions are okay. After this quick test is done, remove sysadmin and let us know the outcome.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-07-16 : 03:48:23
Also asked here: http://www.sqlservercentral.com/Forums/Topic953642-324-1.aspx

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

rajajetti
Starting Member

5 Posts

Posted - 2010-07-16 : 04:43:20
I tried with admin rights its working. I am using Express edition 2005,Is the problem with the version?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-07-16 : 11:23:35
No dbcreator isn't enough, I guess. I don't think any of the other fixed server roles will work, but you should try each just in case. I think the user is going to need sysadmin though.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Peter99
Constraint Violating Yak Guru

498 Posts

Posted - 2010-07-16 : 13:46:41
also check db_backupoperator
Go to Top of Page
   

- Advertisement -