Book Image

SQL Server on Linux

Book Image

SQL Server on Linux

Overview of this book

Microsoft's launch of SQL Server on Linux has made SQL Server a truly versatile platform across different operating systems and data-types, both on-premise and on-cloud. This book is your handy guide to setting up and implementing your SQL Server solution on the open source Linux platform. You will start by understanding how SQL Server can be installed on supported and unsupported Linux distributions. Then you will brush up your SQL Server skills by creating and querying database objects and implementing basic administration tasks to support business continuity, including security and performance optimization. This book will also take you beyond the basics and highlight some advanced topics such as in-memory OLTP and temporal tables. By the end of this book, you will be able to recognize and utilize the full potential of setting up an efficient SQL Server database solution in your Linux environment.
Table of Contents (19 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Dynamic data masking


Another great security feature is presented in version SQL Server 2016. Dynamic data masking limits sensitive data exposure by masking it to users with low-level privileges. Sometimes you will need to expose some elements from the data, but with built-in elements of preventing unauthorized access. Let's look at the following example: a user will execute SELECT, but unauthorized elements are hidden-masked:

ID

FirstName

LastName

PhoneNumber

EmailAddress

CreditCardNumber

1

Jasmin

Azemović

+387- xxxxxx

[email protected]

xxxx-xxxx-xxxx-1111

2

Denis

Musić

+387- xxxxxx

[email protected]

xxxx-xxxx-xxxx-2222

3

Edward

Snowden

+387- xxxxxx

[email protected]

xxxx-xxxx-xxxx-3333

4

Julian

Assange

+387- xxxxxx

[email protected]

xxxx-xxxx-xxxx-4444

 

This feature can be implemented without affecting or modifying any existing SQL or application code.

Let's see how it works:

-- You will use content of AdventureWorks sample database1> USE AdventureWorks2> GO-- Add masked future to the Email column1> ALTER TABLE Person.EmailAddress...