Re: table security
From: Erland Sommarskog (esquel_at_sommarskog.se)
Date: 01/01/05
- Previous message: Ken Schaefer: "Re: Database Access (client) to Specific machines in LAN network."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 01 Jan 2005 06:53:46 -0800
Jim (peesa_govno@hotmail.com) writes:
> I want to implement security based on permissions for groups. So
> administratorsusers have access to all rows of a certain table/view whilst
> users with less priviliges have access to a limited amount of rows. I was
> thinking storing the tablecolumn + value in a table and then updating the
> whereclause dynamically...
Better to defined a view where you join to table which define which rows
a user may see. Then grant no access to the table, but all access to the
table. No need for dynamic WHERE clauses.
-- Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se Books Online for SQL Server SP3 at http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp
- Previous message: Ken Schaefer: "Re: Database Access (client) to Specific machines in LAN network."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|