Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the SQL Server equivalent to Oracle's Virtual Private Database?

What is the SQL Server equivalent to Oracle's Virtual Private Database (VPD)?

like image 755
McGovernTheory Avatar asked Jun 29 '09 13:06

McGovernTheory


2 Answers

For row/column level security and other aspects like fine grained access control in SQL Server you might want to check this http://technet.microsoft.com/en-us/library/cc966395.aspx

like image 157
Arnkrishn Avatar answered Oct 12 '22 01:10

Arnkrishn


You can create a VPD in SQL Server using VIEW objects. SQL Server has the USER system function which returns the database user similar to how Oracle does.

like image 35
Dan Avatar answered Oct 12 '22 01:10

Dan