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)
 Preventing Schema Owner from seeing other data

Author  Topic 

bogey
Posting Yak Master

166 Posts

Posted - 2007-01-16 : 09:52:08
I have a schema/user called mstp who has tables in another schema/user. How do I prevent the mstp user from seeing those tables/data that do not belong to their schema?

example:

database xxxx has tables som.employees and mstp.employees The mstp user should only allowed access to mstp.employees and nothing else.

thanks.

X002548
Not Just a Number

15586 Posts

Posted - 2007-01-16 : 12:55:36
What permissions do they currently have?



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

bogey
Posting Yak Master

166 Posts

Posted - 2007-01-16 : 13:37:53
I've been able to restrict access to the users tables by creating a schema in the DB (schema X) and then assigning the user (XX) the default schema of X. User XX then can only see tables within schema X.

thanks.
Go to Top of Page
   

- Advertisement -