Solved

Security aspect of views in SQL Server

Posted on 2011-03-25
2
232 Views
Last Modified: 2012-06-21
Hi

I was reading an article on views. How they are useful and in what scenarios. My query is what is the security aspect of view. Is it safe and how can you justify it.


Regards
Karan  
0
Comment
Question by:KaranGupta
2 Comments
 
LVL 3

Assisted Solution

by:kumarnimavat
kumarnimavat earned 150 total points
ID: 35214414
0
 
LVL 28

Accepted Solution

by:
Ryan McCauley earned 350 total points
ID: 35215163
Views can ensure that people have easy access to only the data that they have rights to see. For example, if you grant a person rights to see only 3 of a table's 5 columns, you can create a view so they can do a "select *" from the view and see what they're allowed to see. In the same way, I person is only allowed to see HOUR details for full-time employees, you could add a where clause to the view "where emptype='FT'" and they'd just see those people.

They still have access to the tables, but it just makes viewing what they have access to easier, as opposed to forgetting to filter their results and being greeted with an "access denied" message constantly.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
too many installs coming along with SQL 2016? 1 29
PHP: Filling Out/Creating a PDF 29 107
How efficient to move databases to Azure? 5 57
SQL syntax question 6 44
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question