October 13, 2011 at 2:58 am
Hi,
i want to create 2 user(ie,sysadd1,sysadd2) in sql server 2008..
In that one db_name is account_db...
In that account_db i am having 50tables..
So that 1st user(sysadd1) can access only 1st 25 table in account_db..next user(sysadd2) can access next 25 tables account_db..
can we do like this in sql server..
if u knw plz tell me that solution..
October 13, 2011 at 3:23 am
Create 2 schemas and place your tables accordingly. Then grant permissions to users for particular schema.
User-Schema Separation
October 13, 2011 at 3:54 am
no no i want to do in single schema only..
my client want to use this 1 schema if i separate this into 2 schema means they cant understand this
so i cant create 2 schema separately
October 13, 2011 at 4:15 am
if i separate this into 2 schema means they cant understand this
Then you must take the pain (as a developer) and assign individual object level permissions to respective user.
It's not recommended for 2 reasons:
1.You require giving object level permissions for each newly created object to respective users. It would be never ending if you DB designs are not finalized.
2.In long run, if users of application increases then the trouble would be n-fold (assuming database roles are also not acceptable by your client :hehe:).
October 13, 2011 at 4:30 am
ya ok Thanks..but i want to do like that way only the solution..
shall u plz tell me how to do object level permission in sql server 2008
October 13, 2011 at 4:41 am
shall u plz tell me how to do object level permission in sql server 2008
GRANT Object Permissions (Transact-SQL)
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply