Implementing Row Level Security in SQL Server 2008

别等时光非礼了梦想. 提交于 2019-11-29 17:51:56

问题


Is there a built-in feature, or way to simulate RLS(Row Level Security) in SQL Server 2008 as found in Oracle?


回答1:


This MS whitepaper outlines how to do it. http://technet.microsoft.com/en-us/library/cc966395.aspx

You take the permissions away from the table, then create a series of security tables and roles that allow you to validate each level for the user. After you setup your security checking on the user, you use a view to filter what the user can query via the security levels and the user's login. Then you have insert, update, delete instead of triggers on the view to redirect the action to the table.



来源:https://stackoverflow.com/questions/7942301/implementing-row-level-security-in-sql-server-2008

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!