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
 Transact-SQL (2005)
 SSMS-Permission

Author  Topic 

inbs
Aged Yak Warrior

860 Posts

Posted - 2009-10-26 : 08:22:05
how in sql server managment studio, can i allow user to see one table and deny the other?
i mean

he can see tableA,tableB but he can't have acess to tableC,tableD.......

jimf
Master Smack Fu Yak Hacker

2875 Posts

Posted - 2009-10-26 : 09:04:02
I googled GRANT PERMISSIONS ON TABLE and came up with this
http://msdn.microsoft.com/en-us/library/ms188371.aspx

you may also want to check BOL for VIEWS

Jim

Everyday I learn something that somebody else already knew
Go to Top of Page

inbs
Aged Yak Warrior

860 Posts

Posted - 2009-10-26 : 09:29:06
if i grant to user permission to just to table_A ,so it mean the user cant see the other tables?

GRANT SELECT ON Customers TO domain\Joe, domain\Mary
Go to Top of Page

jimf
Master Smack Fu Yak Hacker

2875 Posts

Posted - 2009-10-26 : 11:16:49
You may need to specifically DENY permissions on other tables.

Jim

Everyday I learn something that somebody else already knew
Go to Top of Page

inbs
Aged Yak Warrior

860 Posts

Posted - 2009-10-26 : 13:19:59
but it is a lot of tables (around 70 tables)
i need to deny all permission for each table??

for TABLE_A
alter deny
control deny
....
selct deny

for TABLE_B
alter deny
control deny
....
selct deny
Go to Top of Page

inbs
Aged Yak Warrior

860 Posts

Posted - 2009-10-27 : 07:00:42
never mine i succeded
Go to Top of Page
   

- Advertisement -