Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server / October 2007

Tip: Looking for answers? Try searching our database.

SQL permission

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sean - 24 Oct 2007 00:51 GMT
I've got a SQL 2000 Server setup having multiple databases. One of my users
wants to be able to backup and restore his database
using SQL database and use Linked Server feature in sql 2000. In SQL 2000,
if I grant him access Server and System administration roles,
he would have access to more than what he needs. He also be able to backup
other databases and restore to other databases.

Is there a way I can grant him only access to his database so that he can
backup and restore his own database and not other databases?
If so, what permissions level do I need?

Also for Linked Server, can I just grant him access to this feature as well?

Thanks
Linchi Shea - 24 Oct 2007 04:40 GMT
Make the user a member of the db_backupoperator fixed database role in that
particular database.

use yourDB
EXEC sp_addrolemember 'db_backupoperator', 'yourUser'

You don't need to grant any permission for the user to use a linked server.
Whether or not he/she can anything with that linked server depends on whether
he/she has the permission on the target source.

Linchi

> I've got a SQL 2000 Server setup having multiple databases. One of my users
> wants to be able to backup and restore his database
[quoted text clipped - 10 lines]
>
> Thanks
Sean - 31 Oct 2007 18:09 GMT
Linchi,

I have granted the user db_backupoperator for that user. But when the user
launches SQL Enterprise Manager and uses backup on his
database, and then when wants to select a backup destination, he gets the
following error.

Error 229: EXECUTE permission denied on object 'xp_availablemedia',database
'master', owner 'dbo'.

After reading a MS KB article on this, MS recommends grant sysadmin role for
backup.  By doing so, the normal user
will have more privileges than he needs.

Any suggestion?

> Make the user a member of the db_backupoperator fixed database role in
> that
[quoted text clipped - 29 lines]
>>
>> Thanks
Sean - 31 Oct 2007 19:10 GMT
Linchi

Please ignore my previous post. I finally found the solution to my problem.
The user needed to be added
to master database access as public and need to have permission to
xp_availablemedia.

> Linchi,
>
[quoted text clipped - 46 lines]
>>>
>>> Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.