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

PPTX
installing and configuring sql server instance by moamen hany
PPTX
introduction to sql server by moamen hany
PPT
Dealing with SQL Security from ADO.NET
PPTX
SQL Azure Overview
PPTX
CodePaLOUsa 2011 - SQL Azure
PDF
Enable locked pages
PPT
Where should I be encrypting my data?
DOCX
Microsoft SQL Azure - Developing And Deploying With SQL Azure Whitepaper
installing and configuring sql server instance by moamen hany
introduction to sql server by moamen hany
Dealing with SQL Security from ADO.NET
SQL Azure Overview
CodePaLOUsa 2011 - SQL Azure
Enable locked pages
Where should I be encrypting my data?
Microsoft SQL Azure - Developing And Deploying With SQL Azure Whitepaper

What's hot (20)

PPTX
Asp.net identity dot netconf
PPTX
What's New in ASP.NET Identity - TRINUG Sept 2014
PDF
How to Perform Database Testing Using Selenium? Edureka
DOCX
Install windows sql 2016 enter prise on azure portal cloud step by step with ...
PPTX
Microsoft SQL Azure - Building Applications Using SQL Azure Presentation
PPTX
Build cloud os in one day belgium
TXT
Sql3
PPT
SQL Server 2008 Express, February CTP
PDF
ScrumDesk API Installation
DOC
Software architecture to analyze licensing needs for pcms- pegasus cargo ma...
PPTX
SharePoint Saturday Philly - To the Cloud
PPTX
2009 - NRW Conf: (ASP).NET Membership
PPTX
Writing simple web services in java using eclipse editor
PPTX
Microsoft/Zend Webcast on Cloud Computing
PPT
Test
PDF
WSS And Share Point For Developers
PPTX
CTU June 2011 - Microsoft System Center Virtual Machine Manager 2012
PPTX
48. Azure Active Directory - Part 1
PPTX
AWS Users Authentication
PPTX
Windows azure camp - Kolkata
Asp.net identity dot netconf
What's New in ASP.NET Identity - TRINUG Sept 2014
How to Perform Database Testing Using Selenium? Edureka
Install windows sql 2016 enter prise on azure portal cloud step by step with ...
Microsoft SQL Azure - Building Applications Using SQL Azure Presentation
Build cloud os in one day belgium
Sql3
SQL Server 2008 Express, February CTP
ScrumDesk API Installation
Software architecture to analyze licensing needs for pcms- pegasus cargo ma...
SharePoint Saturday Philly - To the Cloud
2009 - NRW Conf: (ASP).NET Membership
Writing simple web services in java using eclipse editor
Microsoft/Zend Webcast on Cloud Computing
Test
WSS And Share Point For Developers
CTU June 2011 - Microsoft System Center Virtual Machine Manager 2012
48. Azure Active Directory - Part 1
AWS Users Authentication
Windows azure camp - Kolkata
Ad

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

PDF
Lesson 5 security
PPT
98_364_Slides_Lesson05.ppt
PPT
Dealing with SQL Security from ADO.NET
PPTX
Isaca sql server 2008 r2 security & auditing
PPT
SQL Server Security
PPTX
Geek Sync | SQL Security Principals and Permissions 101
PPTX
Ms sql
PPTX
03_DP_300T00A_Secure_Environment.pptx
PPT
Sql server basics
PPTX
24 HOP edición Español -Diferentes técnicas de administración de logins y usu...
PDF
KoprowskiT_SQLRelayCaerdydd_SQLSecurityInTheClouds
PDF
KoprowskiT_SQLRelayBirmingham_SQLSecurityInTheClouds
PPTX
The Spy Who Loathed Me - An Intro to SQL Server Security
PDF
KoprowskiT_SQLSatHolland_SQLServerSecurityInTheCloud
PDF
10 Deadly Sins of SQL Server Configuration - APPSEC CALIFORNIA 2015
PPT
SQL Server Basics Hello world iam here.ppt
PPTX
Sql server lesson2
PPTX
2017 Thotcon - Hacking SQL Servers on Scale with PowerShell
PPTX
SQL Server Security And Encryption
Lesson 5 security
98_364_Slides_Lesson05.ppt
Dealing with SQL Security from ADO.NET
Isaca sql server 2008 r2 security & auditing
SQL Server Security
Geek Sync | SQL Security Principals and Permissions 101
Ms sql
03_DP_300T00A_Secure_Environment.pptx
Sql server basics
24 HOP edición Español -Diferentes técnicas de administración de logins y usu...
KoprowskiT_SQLRelayCaerdydd_SQLSecurityInTheClouds
KoprowskiT_SQLRelayBirmingham_SQLSecurityInTheClouds
The Spy Who Loathed Me - An Intro to SQL Server Security
KoprowskiT_SQLSatHolland_SQLServerSecurityInTheCloud
10 Deadly Sins of SQL Server Configuration - APPSEC CALIFORNIA 2015
SQL Server Basics Hello world iam here.ppt
Sql server lesson2
2017 Thotcon - Hacking SQL Servers on Scale with PowerShell
SQL Server Security And Encryption
Ad

Recently uploaded (20)

PDF
KodekX | Application Modernization Development
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Chapter 3 Spatial Domain Image Processing.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Encapsulation theory and applications.pdf
PPT
Teaching material agriculture food technology
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Machine learning based COVID-19 study performance prediction
KodekX | Application Modernization Development
Mobile App Security Testing_ A Comprehensive Guide.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Reach Out and Touch Someone: Haptics and Empathic Computing
MYSQL Presentation for SQL database connectivity
Chapter 3 Spatial Domain Image Processing.pdf
The AUB Centre for AI in Media Proposal.docx
“AI and Expert System Decision Support & Business Intelligence Systems”
Programs and apps: productivity, graphics, security and other tools
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
The Rise and Fall of 3GPP – Time for a Sabbatical?
Big Data Technologies - Introduction.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
Encapsulation theory and applications.pdf
Teaching material agriculture food technology
Review of recent advances in non-invasive hemoglobin estimation
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Empathic Computing: Creating Shared Understanding
Machine learning based COVID-19 study performance prediction

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.