data encryption

What are the Differences between Dynamic data masking and Views in SQL server.?
Varun GaurAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ares KurkluSoftware EngineerCommented:
DDM and Views, they somehow serve different purposes. DDM is a security feature which hides data (as the name says masking).

Views just can be used to display different datasets or subsets from one or several tables, they are like virtual tables. You may use them for reporting purpose etc. But as for security purposes, if you don't want to display all the columns to the end user, it may be used that way as well, you can just get a subset of the table and display that information to the user.

DDM can be used to obfuscate sensitive data if a  user has like a read permission to run the query they can still access to the column and query it but they can end up seeing masked data, like if you want to hide the phone numbers they may just see XXXXX.

Again you can create a view from multiple tables/columns and display it, but those columns may be masked as well.
e.g you can have a User table and Company table in a view you can display all users from all companies with some details but both tables
may have a phone column which might be masked even if the user views the information in columns they may see like this:
Id | User | Company | userMobile | companyPhone
1   |Joe |  ABC           | xxxxxxx| xxxxxxxxxxxxxx

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Vitor MontalvãoMSSQL Senior EngineerCommented:
I would say that they are totally different things. Is almost like asking what is the difference from a car seat belt and a car's brake.
You mask data when you for example want to hide sensitive information (customer name, employee salary, patient diseases, ....) when presenting data to somebody out of the organization.
You use a View to create a logic set of data that can be used for example, by your application.
Vitor MontalvãoMSSQL Senior EngineerCommented:
Recommendation to close this question by accepting the above comments as solution.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SQL

From novice to tech pro — start learning today.