SlideShare a Scribd company logo
Moamen Hany
MCT & Senior Solutions Architect
www.moamenhany.com
+201143739545
+966564095502
SQL Server
Authentication
Types
SQL Authentication Types
SQL Server supports two authentication modes, Windows authentication mode and mixed mode.
 Windows authentication is the default, and is often referred to as integrated security because this SQL
Server security model is tightly integrated with Windows. Specific Windows user and group accounts
are trusted to log in to SQL Server. Windows users who have already been authenticated do not have
to present additional credentials.
 Mixed mode supports authentication both by Windows and by SQL Server. User name and password
pairs are maintained within SQL Server.
Authentication Scenarios
Windows authentication is usually the best choice in the following situations:
 There is a domain controller.
 The application and the database are on the same computer.
 You are using an instance of SQL Server Express or LocalDB.
SQL Server logins are often used in the following situations:
 If you have a workgroup.
 Users connect from different, non-trusted domains.
 Internet applications, such as ASP.NET.
Login Types
SQL Server supports three types of logins:
 A local Windows user account or trusted domain account. SQL Server relies on Windows to
authenticate the Windows user accounts.
 Windows group. Granting access to a Windows group grants access to all Windows user logins that are
members of the group.
 SQL Server login. SQL Server stores both the username and a hash of the password in the master
database, by using internal authentication methods to verify login attempts.
https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/sql/authentication-in-sql-
server#:~:text=SQL%20Server%20supports%20two%20authentication,is%20tightly%20integrated%20with%2
0Windows.
Mixed Mode Authentication
 If you must use mixed mode authentication, you must create SQL Server logins, which are stored in
SQL Server. You then have to supply the SQL Server user name and password at run time.
SQL Server Roles
Fixed server-level
role
Description
sysadmin Members of the sysadmin fixed server role can perform any activity in the server.
serveradmin Members of the serveradmin fixed server role can change server-wide configuration options
and shut down the server.
securityadmin Members of the securityadmin fixed server role manage logins and their properties. They
can GRANT, DENY, and REVOKE server-level permissions. They can also GRANT, DENY,
and REVOKE database-level permissions if they have access to a database. Additionally, they can
reset passwords for SQL Server logins.
processadmin Members of the processadmin fixed server role can end processes that are running in an
instance of SQL Server.
setupadmin Members of the setupadmin fixed server role can add and remove linked servers by using
Transact-SQL statements. (sysadmin membership is needed when using Management Studio.)
bulkadmin Members of the bulkadmin fixed server role can run the BULK INSERT statement.
diskadmin The diskadmin fixed server role is used for managing disk files.
dbcreator Members of the dbcreator fixed server role can create, alter, drop, and restore any database.
public EOnly assign public permissions on any object when you want the object to be available to all
users. You cannot change membership in public.
SQL Server Roles
https://docs.microsoft.com/en-us/sql/relational-databases/security/authentication-access/server-level-
roles?view=sql-server-ver15
Thank you.
© Copyrights www.moamenhany.com. All rights reserved.

More Related Content

What's hot (20)

PPTX
Asp.net identity dot netconf
rustd
 
PPTX
What's New in ASP.NET Identity - TRINUG Sept 2014
Derek Smith
 
PDF
How to Perform Database Testing Using Selenium? Edureka
Edureka!
 
DOCX
Install windows sql 2016 enter prise on azure portal cloud step by step with ...
Prashant Kumar Singh
 
PPTX
Microsoft SQL Azure - Building Applications Using SQL Azure Presentation
Microsoft Private Cloud
 
PPTX
Build cloud os in one day belgium
Alexandre Verkinderen
 
TXT
Sql3
sssql
 
PPT
SQL Server 2008 Express, February CTP
Steve Valenzuela
 
PDF
ScrumDesk API Installation
ScrumDesk
 
DOC
Software architecture to analyze licensing needs for pcms- pegasus cargo ma...
Shahzad
 
PPTX
SharePoint Saturday Philly - To the Cloud
Dan Usher
 
PPTX
2009 - NRW Conf: (ASP).NET Membership
Daniel Fisher
 
PPTX
Writing simple web services in java using eclipse editor
Santosh Kumar Kar
 
PPTX
Microsoft/Zend Webcast on Cloud Computing
Josh Holmes
 
PPT
Test
henigg
 
PDF
WSS And Share Point For Developers
Manny Siddiqui MCS, MBA, PMP
 
PPTX
CTU June 2011 - Microsoft System Center Virtual Machine Manager 2012
Spiffy
 
PPTX
48. Azure Active Directory - Part 1
Shawn Ismail
 
PPTX
AWS Users Authentication
chandrasen Reddy
 
PPTX
Windows azure camp - Kolkata
Abhijit Jana
 
Asp.net identity dot netconf
rustd
 
What's New in ASP.NET Identity - TRINUG Sept 2014
Derek Smith
 
How to Perform Database Testing Using Selenium? Edureka
Edureka!
 
Install windows sql 2016 enter prise on azure portal cloud step by step with ...
Prashant Kumar Singh
 
Microsoft SQL Azure - Building Applications Using SQL Azure Presentation
Microsoft Private Cloud
 
Build cloud os in one day belgium
Alexandre Verkinderen
 
Sql3
sssql
 
SQL Server 2008 Express, February CTP
Steve Valenzuela
 
ScrumDesk API Installation
ScrumDesk
 
Software architecture to analyze licensing needs for pcms- pegasus cargo ma...
Shahzad
 
SharePoint Saturday Philly - To the Cloud
Dan Usher
 
2009 - NRW Conf: (ASP).NET Membership
Daniel Fisher
 
Writing simple web services in java using eclipse editor
Santosh Kumar Kar
 
Microsoft/Zend Webcast on Cloud Computing
Josh Holmes
 
Test
henigg
 
WSS And Share Point For Developers
Manny Siddiqui MCS, MBA, PMP
 
CTU June 2011 - Microsoft System Center Virtual Machine Manager 2012
Spiffy
 
48. Azure Active Directory - Part 1
Shawn Ismail
 
AWS Users Authentication
chandrasen Reddy
 
Windows azure camp - Kolkata
Abhijit Jana
 

Similar to sql server authentication types by moamen hany (20)

PDF
Lesson 5 security
Ram Kedem
 
PPT
98_364_Slides_Lesson05.ppt
RahafKhalid14
 
PPT
Dealing with SQL Security from ADO.NET
Fernando G. Guerrero
 
PPTX
Isaca sql server 2008 r2 security & auditing
Antonios Chatzipavlis
 
PPT
SQL Server Security
sunitkanyan
 
PPTX
Geek Sync | SQL Security Principals and Permissions 101
IDERA Software
 
PPTX
Ms sql
Ajay Singh
 
PPTX
03_DP_300T00A_Secure_Environment.pptx
KareemBullard1
 
PPT
Sql server basics
Dilfaroz Khan
 
PPTX
24 HOP edición Español -Diferentes técnicas de administración de logins y usu...
SpanishPASSVC
 
PDF
KoprowskiT_SQLRelayCaerdydd_SQLSecurityInTheClouds
Tobias Koprowski
 
PDF
KoprowskiT_SQLRelayBirmingham_SQLSecurityInTheClouds
Tobias Koprowski
 
PPTX
The Spy Who Loathed Me - An Intro to SQL Server Security
Chris Bell
 
PDF
KoprowskiT_SQLSatHolland_SQLServerSecurityInTheCloud
Tobias Koprowski
 
PDF
10 Deadly Sins of SQL Server Configuration - APPSEC CALIFORNIA 2015
Scott Sutherland
 
PPT
SQL Server Basics Hello world iam here.ppt
nanisaketh
 
PPTX
Sql server lesson2
Ala Qunaibi
 
PPTX
2017 Thotcon - Hacking SQL Servers on Scale with PowerShell
Scott Sutherland
 
PPTX
SQL Server Security And Encryption
Hamid J. Fard
 
Lesson 5 security
Ram Kedem
 
98_364_Slides_Lesson05.ppt
RahafKhalid14
 
Dealing with SQL Security from ADO.NET
Fernando G. Guerrero
 
Isaca sql server 2008 r2 security & auditing
Antonios Chatzipavlis
 
SQL Server Security
sunitkanyan
 
Geek Sync | SQL Security Principals and Permissions 101
IDERA Software
 
Ms sql
Ajay Singh
 
03_DP_300T00A_Secure_Environment.pptx
KareemBullard1
 
Sql server basics
Dilfaroz Khan
 
24 HOP edición Español -Diferentes técnicas de administración de logins y usu...
SpanishPASSVC
 
KoprowskiT_SQLRelayCaerdydd_SQLSecurityInTheClouds
Tobias Koprowski
 
KoprowskiT_SQLRelayBirmingham_SQLSecurityInTheClouds
Tobias Koprowski
 
The Spy Who Loathed Me - An Intro to SQL Server Security
Chris Bell
 
KoprowskiT_SQLSatHolland_SQLServerSecurityInTheCloud
Tobias Koprowski
 
10 Deadly Sins of SQL Server Configuration - APPSEC CALIFORNIA 2015
Scott Sutherland
 
SQL Server Basics Hello world iam here.ppt
nanisaketh
 
Sql server lesson2
Ala Qunaibi
 
2017 Thotcon - Hacking SQL Servers on Scale with PowerShell
Scott Sutherland
 
SQL Server Security And Encryption
Hamid J. Fard
 
Ad

Recently uploaded (20)

PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
NASA A Researcher’s Guide to International Space Station : Earth Observations
Dr. PANKAJ DHUSSA
 
PPTX
Securing Model Context Protocol with Keycloak: AuthN/AuthZ for MCP Servers
Hitachi, Ltd. OSS Solution Center.
 
PDF
Linux schedulers for fun and profit with SchedKit
Alessio Biancalana
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PDF
[GDGoC FPTU] Spring 2025 Summary Slidess
minhtrietgect
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PDF
Bitkom eIDAS Summit | European Business Wallet: Use Cases, Macroeconomics, an...
Carsten Stoecker
 
PDF
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
 
PDF
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
Software Development Company Keene Systems, Inc (1).pdf
Custom Software Development Company | Keene Systems, Inc.
 
PDF
Modern Decentralized Application Architectures.pdf
Kalema Edgar
 
PPTX
Essential Content-centric Plugins for your Website
Laura Byrne
 
PDF
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PPTX
Talbott's brief History of Computers for CollabDays Hamburg 2025
Talbott Crowell
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
NASA A Researcher’s Guide to International Space Station : Earth Observations
Dr. PANKAJ DHUSSA
 
Securing Model Context Protocol with Keycloak: AuthN/AuthZ for MCP Servers
Hitachi, Ltd. OSS Solution Center.
 
Linux schedulers for fun and profit with SchedKit
Alessio Biancalana
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
[GDGoC FPTU] Spring 2025 Summary Slidess
minhtrietgect
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
Bitkom eIDAS Summit | European Business Wallet: Use Cases, Macroeconomics, an...
Carsten Stoecker
 
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
 
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
Software Development Company Keene Systems, Inc (1).pdf
Custom Software Development Company | Keene Systems, Inc.
 
Modern Decentralized Application Architectures.pdf
Kalema Edgar
 
Essential Content-centric Plugins for your Website
Laura Byrne
 
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
Talbott's brief History of Computers for CollabDays Hamburg 2025
Talbott Crowell
 
Ad

sql server authentication types by moamen hany

  • 1. Moamen Hany MCT & Senior Solutions Architect www.moamenhany.com +201143739545 +966564095502
  • 3. SQL Authentication Types SQL Server supports two authentication modes, Windows authentication mode and mixed mode.  Windows authentication is the default, and is often referred to as integrated security because this SQL Server security model is tightly integrated with Windows. Specific Windows user and group accounts are trusted to log in to SQL Server. Windows users who have already been authenticated do not have to present additional credentials.  Mixed mode supports authentication both by Windows and by SQL Server. User name and password pairs are maintained within SQL Server.
  • 4. Authentication Scenarios Windows authentication is usually the best choice in the following situations:  There is a domain controller.  The application and the database are on the same computer.  You are using an instance of SQL Server Express or LocalDB. SQL Server logins are often used in the following situations:  If you have a workgroup.  Users connect from different, non-trusted domains.  Internet applications, such as ASP.NET.
  • 5. Login Types SQL Server supports three types of logins:  A local Windows user account or trusted domain account. SQL Server relies on Windows to authenticate the Windows user accounts.  Windows group. Granting access to a Windows group grants access to all Windows user logins that are members of the group.  SQL Server login. SQL Server stores both the username and a hash of the password in the master database, by using internal authentication methods to verify login attempts. https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/sql/authentication-in-sql- server#:~:text=SQL%20Server%20supports%20two%20authentication,is%20tightly%20integrated%20with%2 0Windows. Mixed Mode Authentication  If you must use mixed mode authentication, you must create SQL Server logins, which are stored in SQL Server. You then have to supply the SQL Server user name and password at run time.
  • 6. SQL Server Roles Fixed server-level role Description sysadmin Members of the sysadmin fixed server role can perform any activity in the server. serveradmin Members of the serveradmin fixed server role can change server-wide configuration options and shut down the server. securityadmin Members of the securityadmin fixed server role manage logins and their properties. They can GRANT, DENY, and REVOKE server-level permissions. They can also GRANT, DENY, and REVOKE database-level permissions if they have access to a database. Additionally, they can reset passwords for SQL Server logins. processadmin Members of the processadmin fixed server role can end processes that are running in an instance of SQL Server. setupadmin Members of the setupadmin fixed server role can add and remove linked servers by using Transact-SQL statements. (sysadmin membership is needed when using Management Studio.) bulkadmin Members of the bulkadmin fixed server role can run the BULK INSERT statement. diskadmin The diskadmin fixed server role is used for managing disk files. dbcreator Members of the dbcreator fixed server role can create, alter, drop, and restore any database. public EOnly assign public permissions on any object when you want the object to be available to all users. You cannot change membership in public.
  • 8. Thank you. © Copyrights www.moamenhany.com. All rights reserved.