Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
SQL Server on Linux

You're reading from   SQL Server on Linux Configuring and administering your SQL Server solution on Linux

Arrow left icon
Product type Paperback
Published in Aug 2017
Publisher Packt
ISBN-13 9781788291804
Length 222 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Jasmin Azemović Jasmin Azemović
Author Profile Icon Jasmin Azemović
Jasmin Azemović
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Linux Distributions 2. Installation and Configuration FREE CHAPTER 3. SQL Server Basics 4. Database in the Sandbox 5. Sample Databases 6. A Crash Course in Querying 7. Backup and Recovery Operations 8. User Management 9. Implementing Data Protection 10. Indexing 11. In-Memory OLTP 12. Beyond SQL Server

Row-level security

This feature is new, starting from version SQL Server 2016. Row-level security was a security challenge for a long time. It was implemented through different sets of add-ons and tools. However, this is now built into the database engine and SQL language. Imagine this scenario: a sales person has read permission on the Sales table, but you want each sales person to only see their own sales records, and the manager should see all the records. If you look at this problem through the classic user-permission chain, it is impossible to implement it. However, the row-level security feature makes it possible.

Let's see how it works:

1> USE Sandbox
2> GO

--Create three users without logins
1> CREATE USER Manager WITHOUT LOGIN;
2> CREATE USER Sales1 WITHOUT LOGIN;
3> CREATE USER Sales2 WITHOUT LOGIN;
4> GO
-- Create Sales table 1> CREATE TABLE...
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 €18.99/month. Cancel anytime