i am trying to deny a user to access (select, insert, delete, update) to tables on my database but i also need him to grant only select to a few tables, to do this i created a user with login and gave him datareader permission then by using the code below i Denied user to Select data from a table,
DENY SELECT ON "dbo"."Customer" TO "test"
He can't see the table which is fine but he can still select the data by
select * from Customer
what i want is to deny select data from table, i don't care whether he sees the table.
for further step i will deny users to access tables but few views.