Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Professional Azure SQL Managed Database Administration - Third Edition

You're reading from  Professional Azure SQL Managed Database Administration - Third Edition

Product type Book
Published in Mar 2021
Publisher Packt
ISBN-13 9781801076524
Pages 724 pages
Edition 3rd Edition
Languages
Concepts
Authors (2):
Ahmad Osama Ahmad Osama
Profile icon Ahmad Osama
Shashikant Shakya Shashikant Shakya
Profile icon Shashikant Shakya
View More author details

Table of Contents (14) Chapters

Preface 1. Introduction to Azure SQL managed databases 2. Service tiers 3. Migration 4. Backups 5. Restoration 6. Security 7. Scalability 8. Elastic and instance pools 9. High availability and disaster recovery 10. Monitoring and tuning 11. Database features 12. App modernization Index

Activity: Implementing DDM

With RLS implemented in the previous activity, Mike has ensured that the customer can only view their own data; however, to take data security to the next level, he wants to mask some of the sensitive data that is shared by the customer. In order to do this, he has to implement DDM. In this activity, we'll implement DDM to mask the credit card number, phone number, and email ID of a customer:

  1. Execute the following query to create a new user and grant select access to the user on the dpl.Customers table:
    CREATE USER TestUser WITHOUT LOGIN; GO
    GRANT SELECT ON dpl.Customers TO TestUser
  2. Execute the following query to mask the CreditCardNumber, Phone, and Email columns using different masking functions:
    ALTER TABLE dpl.Customers ALTER COLUMN Phone VARCHAR(100) MASKED WITH (FUNCTION = 'default()')
    GO 
    ALTER TABLE dpl.Customers ALTER COLUMN Email VARCHAR(100) MASKED WITH (FUNCTION = 'email()') 
    GO 
    ALTER TABLE dpl.Customers ALTER...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}