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 2000 Forums
 SQL Server Administration (2000)
 Database access

Author  Topic 

nicole
Yak Posting Veteran

97 Posts

Posted - 2006-03-01 : 03:14:21
If the SQL Server has several database, can we apply access control to different user ID?

For example:
User A can access DB-1, DB-2, DB-3
User B can access DB-2
User C can access DB-2, DB-3

nicole
Yak Posting Veteran

97 Posts

Posted - 2006-03-01 : 03:18:48
In addition to the database access, is there any setting for user role?

For example:
User A can select/insert/update/delete against the tables records;
User B can select only.
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-03-01 : 03:18:50
yes.

see sp_grantdbaccess in BooksOnline

----------------------------------
'KH'


Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-03-01 : 03:23:04
quote:
Originally posted by nicole

In addition to the database access, is there any setting for user role?

For example:
User A can select/insert/update/delete against the tables records;
User B can select only.



Yes. you can control by individual user or use role
To create a role use sp_addrole
To add a member to a role use sp_addrolemember

For more information, please refer to Books OnLine on Security

----------------------------------
'KH'


Go to Top of Page

nicole
Yak Posting Veteran

97 Posts

Posted - 2006-03-01 : 03:46:18
Thanks, KH

what if.....
Developer A can access dev database, this can be done by using sp_grantdbaccess as you said. However, he also needs to develop DTS package, that means I have to grant him access to the "msdb" too? Since msdb is a system master table, I wonder if it should/have to be accessed by all users....
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-03-01 : 03:54:39
I am not sure about this but i don't think you need to grant access of msdb to that user.

----------------------------------
'KH'


Go to Top of Page

nicole
Yak Posting Veteran

97 Posts

Posted - 2006-03-01 : 04:08:07
Since all DTS are kept under msdb, no matter for dev or production database, that means any DTS can be modified/delete by anybody who have access to the SQL server. Am I correct?

My manager would like to have more control on database/table/DTS access, and I learnt from you that specific access can be granted to each database/table. However, I wonder if it's feasible on DTS
Go to Top of Page

nicole
Yak Posting Veteran

97 Posts

Posted - 2006-03-02 : 23:03:36
For the DTS, any access control I can apply? For example, set the user who can add/modify DTS only...
Go to Top of Page

kpsreenath
Yak Posting Veteran

52 Posts

Posted - 2006-03-05 : 15:48:57
nicole, take a look at this link. I think this answers all your questions

http://support.microsoft.com/default.aspx?scid=kb;en-us;282463

take a look at these points from the microsoft site.

On SQL Server 7.0, users can be denied SELECT, INSERT, UPDATE or DELETE permissions on the msdb..Tfmpackage system table to prevent the user from viewing, creating, updating, or deleting packages that are stored in the SQL Server 7.0 version of the repository.
• If users are denied execute permissions to the msdb..sp_enum_dtspackages stored procedure, the users cannot view any local packages. When the user clicks Local Packages in the SQL Server Enterprise Manager, the user receives an empty list.

Thanks
Sree
Go to Top of Page

nicole
Yak Posting Veteran

97 Posts

Posted - 2006-03-15 : 04:32:05
Thank you, Sree, the link you provided does help me alot

I think I can make use of the owner password of the DTS in addition to DB role to apply control on DTS
Go to Top of Page
   

- Advertisement -