SlideShare a Scribd company logo
SQL Server
Permission Management
12 Pitfalls & Misconceptions
About Me
Sebas
tian
Mein
e
Clean
Code
SQL
Stylist
sqlity.
net
Fast
Code
About Me
Sebas
tian
Mein
e
Clean
Code
SQL
Stylist
sqlity.
net
Fast
Code
Overview
©2011sqlity.net llc, all rights reserved. emptyPic
Permission Management
• What
• When
• Why
• How
12 P&Ms
• Pitfalls
• Misconceptions
I
Permission Management
-
Why?
ALTER SERVER ROLE sysadmin
ADD MEMBER [public];
©2011sqlity.net llc, all rights reserved. HoBT
SQL Injection
©2011sqlity.net llc, all rights reserved. HoBT
SQL Injection
©2011sqlity.net llc, all rights reserved. HoBT
SQL Injection
©2011sqlity.net llc, all rights reserved. HoBT
Excerptedfrom
OWASPTop10–2013(Page4)
I
Permission Management
-
What?
Least Privilege
Principle
©2011sqlity.net llc, all rights reserved. HoBT
I
Permission Management
-
When?
After development
is done.
©2011sqlity.net llc, all rights reserved. HoBT
After development
is done.
©2011sqlity.net llc, all rights reserved. HoBT
Security
cannot be an
afterthought
I
Permission Management
-
How?
Permission
Management
GRANT REVOKE DENY
Database
Role
Server
Role
Application
Role
©2011sqlity.net llc, all rights reserved. HoBT
GRANT Statement
©2011sqlity.net llc, all rights reserved. HoBT
GRANT Privilege
ON Securable
TO Principal;
GRANT
REVOKE
DENY
Privilege
SELECT UPDATE CREATE
ALTER CONTROL …
©2011sqlity.net llc, all rights reserved. HoBT
Securable
Table Schema Database
Server Endpoint …
©2011sqlity.net llc, all rights reserved. HoBT
Principal
Server
Role
Database
Role
Application
Role
Login User
©2011sqlity.net llc, all rights reserved. HoBT
II
12
Pitfalls
&
Misconceptions
12 P&Ms
REVOKE = DENY ALL PRIVILEGES
GRANT on all
Columns = GRANT
on Table
REVOKE un-
granted Column
Permission
REVOKE CONTROL
(Non)CASCADE
DENY
(Non)CASCADE
Column GRANT
>
Table DENY
DENY CONTROL
Role Ownership
Implications
CONTROL SERVER
Impact on
Securable Owner
Implicit User
Creation Failure
Ownership
Chaining
Quandary
©2011sqlity.net llc, all rights reserved. HoBT
References
SQL Stylist with sqlity.net
sebastian@sqlity.net
Sebastian Meine
©2011sqlity.net llc, all rights reserved.
SQL Server Permission Management
12 P&Ms
http://goo.gl/YhsW1M

More Related Content

PPTX
Tuning SQL Server for Sharepoint-Sharepoint Summit Toronto 2014
PDF
ITCamp 2011 - Cristian Lefter - SQL Server code-name Denali
PDF
Top 5 TSQL Improvements in SQL Server 2014
PPTX
Database Performance
PPTX
New T-SQL Features in SQL Server 2012
PPT
Sql architecture
PPTX
MS Sql Server: Introduction To Database Concepts
PPTX
Clase 18 privilegios modificada
Tuning SQL Server for Sharepoint-Sharepoint Summit Toronto 2014
ITCamp 2011 - Cristian Lefter - SQL Server code-name Denali
Top 5 TSQL Improvements in SQL Server 2014
Database Performance
New T-SQL Features in SQL Server 2012
Sql architecture
MS Sql Server: Introduction To Database Concepts
Clase 18 privilegios modificada

Similar to SQL Server Permission Management: 12 Pitfalls and Misconceptions (7)

PPTX
Clase 18 privilegios modificada
PPTX
Sql server security in an insecure world
PDF
Chapter 6 Database Security and Authorization (4).pdf
PPTX
7 (1) the motor was very good Lock and complete.pptx
PPTX
Security in Relational model
PPTX
Database Management System Security.pptx
PPTX
Group 8 - Database Security Version 1.pptx
Clase 18 privilegios modificada
Sql server security in an insecure world
Chapter 6 Database Security and Authorization (4).pdf
7 (1) the motor was very good Lock and complete.pptx
Security in Relational model
Database Management System Security.pptx
Group 8 - Database Security Version 1.pptx
Ad

Recently uploaded (20)

PDF
Architecture types and enterprise applications.pdf
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
Hindi spoken digit analysis for native and non-native speakers
PPTX
The various Industrial Revolutions .pptx
PDF
Getting Started with Data Integration: FME Form 101
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
STKI Israel Market Study 2025 version august
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
Getting started with AI Agents and Multi-Agent Systems
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
project resource management chapter-09.pdf
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PPTX
TLE Review Electricity (Electricity).pptx
PDF
2021 HotChips TSMC Packaging Technologies for Chiplets and 3D_0819 publish_pu...
Architecture types and enterprise applications.pdf
Enhancing emotion recognition model for a student engagement use case through...
Hindi spoken digit analysis for native and non-native speakers
The various Industrial Revolutions .pptx
Getting Started with Data Integration: FME Form 101
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
STKI Israel Market Study 2025 version august
gpt5_lecture_notes_comprehensive_20250812015547.pdf
OMC Textile Division Presentation 2021.pptx
Getting started with AI Agents and Multi-Agent Systems
NewMind AI Weekly Chronicles - August'25-Week II
project resource management chapter-09.pdf
A comparative study of natural language inference in Swahili using monolingua...
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
A novel scalable deep ensemble learning framework for big data classification...
NewMind AI Weekly Chronicles – August ’25 Week III
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
TLE Review Electricity (Electricity).pptx
2021 HotChips TSMC Packaging Technologies for Chiplets and 3D_0819 publish_pu...
Ad

SQL Server Permission Management: 12 Pitfalls and Misconceptions

Editor's Notes

  • #3: 10 YearsAuthor:SQL Server Central, simple talk, SQL Server Magazine, Replication BookCo-Author of tSQLt
  • #4: 10 YearsAuthor:SQL Server Central, simple talk, SQL Server Magazine, Replication BookCo-Author of tSQLt