SQL Server, how to improve privacy (and be more gdpr complaiant) at no cost with the "dynamic data masking" feature
Hi guys, Welcome back mates! Today we will talk about privacy because, at least here in Europe, GDPR laws are not a joke. For this reason I decided to tell you how to be more compliant using a SQL Server function, all at no cost . We will use the dynamic data masking (DDM) feature introduced with the SQL server 2016 edition. Let's see today how to use it in practice! The dynamic data masking feature The dinamic data masked is a feature that allows you to mask data that we consider sensitive . By performing a select on the database, the columns we have chosen, will be shown in a masked way . Personally, I strongly recommend it to all companies that develop softwar e. Let's see how it works! Well, this time for the demo we will use a localized demo databases available for SAP Business One, its name is SBODemoUS. From this database we read the AADM table by extracting a few fields, a couple of which we think are sensitive . The T-SQL command we run is this: SELECT DISTINCT [...