Solved

Security aspect of views in SQL Server

Posted on 2011-03-25
2
233 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Creating and Managing Databases with phpMyAdmin in cPanel.
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

707 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