SlideShare une entreprise Scribd logo
1  sur  71
Télécharger pour lire hors ligne
ESSENTIAL DATABASE ADMINISTRATION SKILLS FOR
SHAREPOINT PROFESSIONALS
Thomas Vochten
@thomasvochten
♡ DIAMOND AND PLATINUM SPONSORS ♡
Thomas Vochten
Microsoft MVP. Technical Evangelist.
Solution advisor.
@thomasvochten
https://thomasvochten.com
mail@thomasvochten.com
I’m not a real DBA
Meet the
Involuntary DBA
Someone who is made to assume a DBA role or take
on DBA responsibilities, usually against their will
Paul Randal
SharePoint makes DBA’s cry
When we installed SharePoint
http://dbareactions.com
When I tell my junior
DBA, “You’d get
valuable experience if
you took over the
Sharepoint project.”
http://dbareactions.com
When I tell my new junior DBA he’ll be taking over the SharePoint databases
http://dbareactions.com
When the project manager says, “Can we put the SharePoint databases on your server?”
http://dbareactions.com
When I get a quarter-million-dollar budget for a new project, and it’s a Microsoft SharePoint project
http://dbareactions.com
When a user comes into my cube and starts complaining about SharePoint performance
http://dbareactions.com
When Microsoft tells me to set MAXDOP to 1 for SharePoint
http://dbareactions.com
Agenda
• Essential tools for the involuntary DBA
• SharePoint & SQL Server
• Frequent operational problems
• Platform setup and configuration tips
Your primary responsibilities as DBA
• Backups
• Reliability
• Performance
Show me some tools!
Let’s skip the manual…
Brent Ozar’s “First Responder Kit”
sp_Blitz
How am I doing?
sp_BlitzFirst
Where’s the bottleneck?
sp_BlitzBackups
How far back can I go?
Great collection of free diagnostic SQL Scripts
https://www.brentozar.com/responder/
Brent Ozar’s First Responder Kit
Leverage the power of the SQL community
DEMO
Ola Hallengren’s “Maintenance Solution”
Backups
Consistency
checks
Index
Maintenance
Free, tried & true scripts with ready-to-schedule jobs
https://ola.hallengren.com/
The industry standard. Period. Time to stop creating Maintenance Plans.
Ola Hallengren’s Maintenance Scripts
Leverage the power of the SQL community
DEMO
Pro Tip
Leave a reminder for the other involuntary DBA’s
Free, community-driven, contributions welcome
https://dbatools.io
PowerShell Module with hundreds of cmdlets
dbatools to the rescue
Leverage the power of the SQL community
DEMO
Glenn Berry’s “Diagnostic Scripts”
Free SQL Scripts available for every SQL Server release
http://sqlserverperformance.wordpress.com
If you need to dig in deeper…
Glenn Berry’s Diagnostic Scripts
Leverage the power of the SQL community
DEMO
Essential Resources
Where do I go for SQL help?
• Paul Randal (blog | twitter)
• Kimberly Tripp (blog| twitter)
• Brent Ozar (blog| twitter)
• Glenn Berry (blog| twitter)
Get Help - Fast!
#sqlhelp on Twitter
The Dynamic Duo
SharePoint & SQL Server
Importance to SharePoint
• SharePoint performance impact
• Almost everything is stored in SQL
• Contributes to your HA/DR strategy
SharePoint makes DBA’s cry
• The support policies
• The strange schema
• The database settings
• The default database names
• The server rights we ask for
• The unconventional maintenance practices
• SharePoint likes to create its databases all by itself
• …
More frustrations…
• Auto Create Statistics = off
• Auto Update Statistics = off
• GUIDS as clustered indexes
• No real referential integrity
• Model Database is not used by SharePoint
consistently
Don’t
• Adding database triggers
• Adding new indexes or changing existing indexes within tables
• Adding, changing, or deleting any primary or foreign key relationships
• Changing or deleting existing stored procedures
• Calling existing stored procedures directly
• Adding new stored procedures
• Adding, changing, or deleting any data in any table of any of the databases
• Adding, changing, or deleting any columns in any table
• Making any modification to the database schema
• Adding tables to any of the databases
• Changing the database collation
• Running DBCC_CHECKDB WITH REPAIR_ALLOW_DATA_LOSS
• Enabling SQL Server change data capture (CDC)
• Enabling SQL Server transactional replication
• Enabling SQL Server merge replication
Do
• Use the GUI
• Use PowerShell
• Use the API’s
Essential Reading
KB841057
supported & unsupported actions to databases
Database Maintenance for SharePoint 2010 Products
* Old, but still relevant!
Database, anyone?
A lot of SharePoint databases
Each with different needs
Even more frustrations...
GUIDS all over the place
Get rid of the GUID
Grey wizard
GOOD
White wizard
BAD
PowerShell to the rescue
Always script farm configuration
Use any script you like,
but know what it does!
Frequent operational problems
Recovery Models
Essential reading:
Understanding Logging & Recovery
http://technet.microsoft.com/en-us/magazine/2009.02.logging.aspx
• Simple recovery model - last full backup
• Full recovery model - up to the minute restore
“Why does this log file keeps on growing?”
DEMO
Index fragmentation
Check “sys.dm_db_index_physical_stats”
Illustration by Paul Randal
* Illustration by Paul Randal
Reducing fragmentation
• SharePoint Health Analyzer
• Perform index maintenance manually (Ola Hallengren)
Consider rebuilding indexes when fragmented
over 30% (for content databases)
Only shrink files when needed
Just because you can, doesn’t mean you should
• Causes massive fragmentation
• Autoshrink is the root of all evil!
• Rebuild indexes & keep free space
Can be considered after special SharePoint operations like moving a site
from one database to another
DEMO
Platform setup and configuration tips
General considerations
• SQL is all about mem/disk IO/cpu
• Dedicate a SQL instance to SharePoint
• Go ahead and virtualize – if you know what you’re doing
Plan your disks
Differentiate & prioritize based on IO needs
• tempdb
• logs
• search
• other databases
Prepare your disks
Check/modify:
Up to 50% io performance gains measured!
Partition alignment 1024K everywhere
Allocation unit size 64K for SQL data & logs
Only install the feature you need:
Database Engine
Always use a domain user as service account
Set the SQL Server Agent to start automatically
Set the right instance collation for SharePoint:
Latin1_General_CI_AS_KS_WS
Configure data & log file placement from the start
Post setup
Enable instant file initialization
From SQL 2016 on, you can do this during setup
• Speeds up data file operations enormously
• Disables zeroing out data files
• Does not work for log files
• Set “Perform volume maintenance tasks”
https://msdn.microsoft.com/en-us/library/ms175935.aspx
Set maximum memory
Turn on backup compression
Set “Optimize for Ad hoc Workloads” to True
Set Maximum Degree of Parallellism to 1
Setting Maximum Degree of Parallellism is mandatory in
SharePoint 2013/2016/2019
Database level settings
• Consider multiple data files
• Tune autogrowth settings (no %)
• Presize databases
• Don’t forget TempDB!
From SQL 2016 on, you can do this during setup
SQL Aliases
• Use SQL Aliases to connect SharePoint to SQL Server
• Use multiple aliases for different database types:
core farm databases
content databases
search databases
logging database
Resources
Best practices for SQL Server in a SharePoint Server farm
https://docs.microsoft.com/en-us/SharePoint/administration/best-practices-for-sql-server-in-a-sharepoint-server-farm
Storage and SQL Server capacity planning and configuration for SharePoint Server
https://docs.microsoft.com/en-us/SharePoint/administration/storage-and-sql-server-capacity-planning-and-configuration
Overview of SQL Server in SharePoint Server 2016 and 2019 environments
https://docs.microsoft.com/en-us/sharepoint/administration/overview-of-sql-server-in-sharepoint-server-2016-and-2019-environments
Support for changes to the databases that are used by SharePoint
http://support.microsoft.com/kb/841057
Database maintenance for SharePoint
https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-server-2010/cc262731(v=office.14)
Supported high availability and disaster recovery options for SharePoint databases
https://docs.microsoft.com/en-us/SharePoint/administration/supported-high-availability-and-disaster-recovery-options-for-sharepoint-databas
Key Takeaways
• Leverage the power of free community tools
• Backups, backups, backups (and restores)
• Learn about what is supported and what not
• Understand how logging & recovery works
• Don’t shrink unless you know what you’re doing
• Learn about fundamental instance & database level settings
thank you
questions?
HTTPS://THOMASVOCHTEN.COM@THOMASVOCHTEN
ECS19 - Thomas Vochten - ESSENTIAL DATABASE ADMINISTRATION SKILLS FOR SHAREPOINT PROFESSIONALS

Contenu connexe

Tendances

Spca2014 keynote johnson
Spca2014 keynote johnsonSpca2014 keynote johnson
Spca2014 keynote johnson
NCCOMMS
 
Custom Development for SharePoint
Custom Development for SharePointCustom Development for SharePoint
Custom Development for SharePoint
Talbott Crowell
 

Tendances (20)

ECS19 - Katja Jokisalo - Modernize your Intranet
ECS19 - Katja Jokisalo - Modernize your IntranetECS19 - Katja Jokisalo - Modernize your Intranet
ECS19 - Katja Jokisalo - Modernize your Intranet
 
[White/Himmelstein] Bridge the Cloud Divide with Hybrid Business Intelligence
[White/Himmelstein] Bridge the Cloud Divide with Hybrid Business Intelligence[White/Himmelstein] Bridge the Cloud Divide with Hybrid Business Intelligence
[White/Himmelstein] Bridge the Cloud Divide with Hybrid Business Intelligence
 
ECS19 - Mike Ammerlaan - Microsoft Graph Data Connect
ECS19 - Mike Ammerlaan - Microsoft Graph Data ConnectECS19 - Mike Ammerlaan - Microsoft Graph Data Connect
ECS19 - Mike Ammerlaan - Microsoft Graph Data Connect
 
ecs19 - Bill Ayers - RE-USE YOUR SHAREPOINT FRAMEWORK SKILLZ TO BUILD OFFICE ...
ecs19 - Bill Ayers - RE-USE YOUR SHAREPOINT FRAMEWORK SKILLZ TO BUILD OFFICE ...ecs19 - Bill Ayers - RE-USE YOUR SHAREPOINT FRAMEWORK SKILLZ TO BUILD OFFICE ...
ecs19 - Bill Ayers - RE-USE YOUR SHAREPOINT FRAMEWORK SKILLZ TO BUILD OFFICE ...
 
PowerShell for the Anxious ITPro
PowerShell for the Anxious ITProPowerShell for the Anxious ITPro
PowerShell for the Anxious ITPro
 
[Vončina] Configuring SharePoint 2016 for BI Scenarios
[Vončina] Configuring SharePoint 2016 for BI Scenarios[Vončina] Configuring SharePoint 2016 for BI Scenarios
[Vončina] Configuring SharePoint 2016 for BI Scenarios
 
Custom Development in SharePoint – What are my options now?
Custom Development in SharePoint – What are my options now?Custom Development in SharePoint – What are my options now?
Custom Development in SharePoint – What are my options now?
 
Making sense of Microsoft Identities in a Hybrid world
Making sense of Microsoft Identities in a Hybrid worldMaking sense of Microsoft Identities in a Hybrid world
Making sense of Microsoft Identities in a Hybrid world
 
A Deep-Dive into Real-World SharePoint App Development
A Deep-Dive into Real-World SharePoint App DevelopmentA Deep-Dive into Real-World SharePoint App Development
A Deep-Dive into Real-World SharePoint App Development
 
Spca2014 keynote johnson
Spca2014 keynote johnsonSpca2014 keynote johnson
Spca2014 keynote johnson
 
ECS19 - Serge Luca - MICROSOFT FLOW IN REAL WORLD PROJECTS: 3 YEARS LATER AN...
ECS19 - Serge Luca -  MICROSOFT FLOW IN REAL WORLD PROJECTS: 3 YEARS LATER AN...ECS19 - Serge Luca -  MICROSOFT FLOW IN REAL WORLD PROJECTS: 3 YEARS LATER AN...
ECS19 - Serge Luca - MICROSOFT FLOW IN REAL WORLD PROJECTS: 3 YEARS LATER AN...
 
Microsoft Flow best practices European Collaboration Summit 2018
Microsoft Flow best practices European Collaboration Summit 2018Microsoft Flow best practices European Collaboration Summit 2018
Microsoft Flow best practices European Collaboration Summit 2018
 
Navigating the turbulence on take-off: Setting up SharePoint on Azure IaaS th...
Navigating the turbulence on take-off: Setting up SharePoint on Azure IaaS th...Navigating the turbulence on take-off: Setting up SharePoint on Azure IaaS th...
Navigating the turbulence on take-off: Setting up SharePoint on Azure IaaS th...
 
A Deep Dive into SharePoint 2016 architecture and deployment
A Deep Dive into SharePoint 2016 architecture and deploymentA Deep Dive into SharePoint 2016 architecture and deployment
A Deep Dive into SharePoint 2016 architecture and deployment
 
ECS19 - Vesa Juvonen - SharePoint Development for Enterprises - What's New an...
ECS19 - Vesa Juvonen - SharePoint Development for Enterprises - What's New an...ECS19 - Vesa Juvonen - SharePoint Development for Enterprises - What's New an...
ECS19 - Vesa Juvonen - SharePoint Development for Enterprises - What's New an...
 
Custom Development for SharePoint
Custom Development for SharePointCustom Development for SharePoint
Custom Development for SharePoint
 
ECS19 - Gokan Ozcifci - PowerApps and SharePoint: Better together.
ECS19 - Gokan Ozcifci - PowerApps and SharePoint: Better together.ECS19 - Gokan Ozcifci - PowerApps and SharePoint: Better together.
ECS19 - Gokan Ozcifci - PowerApps and SharePoint: Better together.
 
Navigating the turbulence on takeoff: Setting up SharePoint on Azure IaaS the...
Navigating the turbulence on takeoff: Setting up SharePoint on Azure IaaS the...Navigating the turbulence on takeoff: Setting up SharePoint on Azure IaaS the...
Navigating the turbulence on takeoff: Setting up SharePoint on Azure IaaS the...
 
SPCA2013 - Developing SharePoint 2013 Apps with Visual Studio 2012
SPCA2013 - Developing SharePoint 2013 Apps with Visual Studio 2012SPCA2013 - Developing SharePoint 2013 Apps with Visual Studio 2012
SPCA2013 - Developing SharePoint 2013 Apps with Visual Studio 2012
 
ECS 19 - Chris O'Brien - The hit list - Office 365 dev techniques you should ...
ECS 19 - Chris O'Brien - The hit list - Office 365 dev techniques you should ...ECS 19 - Chris O'Brien - The hit list - Office 365 dev techniques you should ...
ECS 19 - Chris O'Brien - The hit list - Office 365 dev techniques you should ...
 

Similaire à ECS19 - Thomas Vochten - ESSENTIAL DATABASE ADMINISTRATION SKILLS FOR SHAREPOINT PROFESSIONALS

Sql And Storage Considerations For Share Point Server 2010
Sql And Storage Considerations For Share Point Server 2010Sql And Storage Considerations For Share Point Server 2010
Sql And Storage Considerations For Share Point Server 2010
Mike Watson
 

Similaire à ECS19 - Thomas Vochten - ESSENTIAL DATABASE ADMINISTRATION SKILLS FOR SHAREPOINT PROFESSIONALS (20)

1. SQL Server forSharePoint geeksA gentle introductionThomas Vochten • Septem...
1. SQL Server forSharePoint geeksA gentle introductionThomas Vochten • Septem...1. SQL Server forSharePoint geeksA gentle introductionThomas Vochten • Septem...
1. SQL Server forSharePoint geeksA gentle introductionThomas Vochten • Septem...
 
What SQL DBAs need to know about SharePoint-Indianapolis 2013
What SQL DBAs need to know about SharePoint-Indianapolis 2013What SQL DBAs need to know about SharePoint-Indianapolis 2013
What SQL DBAs need to know about SharePoint-Indianapolis 2013
 
SharePoint Saturday St. Louis 2014: What SharePoint Admins need to know about...
SharePoint Saturday St. Louis 2014: What SharePoint Admins need to know about...SharePoint Saturday St. Louis 2014: What SharePoint Admins need to know about...
SharePoint Saturday St. Louis 2014: What SharePoint Admins need to know about...
 
Introduction to SharePoint for SQLserver DBAs
Introduction to SharePoint for SQLserver DBAsIntroduction to SharePoint for SQLserver DBAs
Introduction to SharePoint for SQLserver DBAs
 
Get your SharePoint spinning with SQL Server
Get your SharePoint spinning with SQL ServerGet your SharePoint spinning with SQL Server
Get your SharePoint spinning with SQL Server
 
What SharePoint Admins need to know about SQL-Cinncinati
What SharePoint Admins need to know about SQL-CinncinatiWhat SharePoint Admins need to know about SQL-Cinncinati
What SharePoint Admins need to know about SQL-Cinncinati
 
Sql And Storage Considerations For Share Point Server 2010
Sql And Storage Considerations For Share Point Server 2010Sql And Storage Considerations For Share Point Server 2010
Sql And Storage Considerations For Share Point Server 2010
 
Tuning SQL Server for Sharepoint 2013- What every sharepoint consultant need...
Tuning SQL Server for Sharepoint 2013-  What every sharepoint consultant need...Tuning SQL Server for Sharepoint 2013-  What every sharepoint consultant need...
Tuning SQL Server for Sharepoint 2013- What every sharepoint consultant need...
 
What SQL DBA's need to know about SharePoint
What SQL DBA's need to know about SharePointWhat SQL DBA's need to know about SharePoint
What SQL DBA's need to know about SharePoint
 
Prepare for SharePoint 2016 - IT Pro best practices for managing your SharePo...
Prepare for SharePoint 2016 - IT Pro best practices for managing your SharePo...Prepare for SharePoint 2016 - IT Pro best practices for managing your SharePo...
Prepare for SharePoint 2016 - IT Pro best practices for managing your SharePo...
 
Tuning SQL Server for Sharepoint-Sharepoint Summit Toronto 2014
Tuning SQL Server for Sharepoint-Sharepoint Summit Toronto 2014Tuning SQL Server for Sharepoint-Sharepoint Summit Toronto 2014
Tuning SQL Server for Sharepoint-Sharepoint Summit Toronto 2014
 
Optimize SQL server performance for SharePoint
Optimize SQL server performance for SharePointOptimize SQL server performance for SharePoint
Optimize SQL server performance for SharePoint
 
SPS Kansas City: What SharePoint Admin need to know about SQL
SPS Kansas City: What SharePoint Admin need to know about SQLSPS Kansas City: What SharePoint Admin need to know about SQL
SPS Kansas City: What SharePoint Admin need to know about SQL
 
Datapolis Guest Expert Presentation: Top 15 SharePoint Server Configuration M...
Datapolis Guest Expert Presentation: Top 15 SharePoint Server Configuration M...Datapolis Guest Expert Presentation: Top 15 SharePoint Server Configuration M...
Datapolis Guest Expert Presentation: Top 15 SharePoint Server Configuration M...
 
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013
 
SharePoint Databases: What you need to know (201504)
SharePoint Databases: What you need to know (201504)SharePoint Databases: What you need to know (201504)
SharePoint Databases: What you need to know (201504)
 
Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...
Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...
Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...
 
SharePoint 2016 Platform Adoption Lessons Learned and Advanced Troubleshooting
SharePoint 2016 Platform Adoption   Lessons Learned and Advanced TroubleshootingSharePoint 2016 Platform Adoption   Lessons Learned and Advanced Troubleshooting
SharePoint 2016 Platform Adoption Lessons Learned and Advanced Troubleshooting
 
Geek Sync | How to Be the DBA When You Don't Have a DBA - Eric Cobb | IDERA
Geek Sync | How to Be the DBA When You Don't Have a DBA - Eric Cobb | IDERAGeek Sync | How to Be the DBA When You Don't Have a DBA - Eric Cobb | IDERA
Geek Sync | How to Be the DBA When You Don't Have a DBA - Eric Cobb | IDERA
 
KoprowskiT_SQLSat409_MaintenancePlansForBeginners
KoprowskiT_SQLSat409_MaintenancePlansForBeginnersKoprowskiT_SQLSat409_MaintenancePlansForBeginners
KoprowskiT_SQLSat409_MaintenancePlansForBeginners
 

Plus de European Collaboration Summit

Plus de European Collaboration Summit (20)

ECS19 - Bram De Jager - Design a secure collaboration solution with Azure In...
ECS19 -  Bram De Jager - Design a secure collaboration solution with Azure In...ECS19 -  Bram De Jager - Design a secure collaboration solution with Azure In...
ECS19 - Bram De Jager - Design a secure collaboration solution with Azure In...
 
ECS19 - Eric Harlan - Increasing throughput of Office 365
ECS19 - Eric Harlan - Increasing throughput of Office 365ECS19 - Eric Harlan - Increasing throughput of Office 365
ECS19 - Eric Harlan - Increasing throughput of Office 365
 
ECS19 - Ahmad Najjar - Logic Apps vs Microsoft Flow - When, how and where?
ECS19 - Ahmad Najjar - Logic Apps vs Microsoft Flow - When, how and where?ECS19 - Ahmad Najjar - Logic Apps vs Microsoft Flow - When, how and where?
ECS19 - Ahmad Najjar - Logic Apps vs Microsoft Flow - When, how and where?
 
ECS19 - Michael Van Horenbeeck - Divide Et Imperat Office 365 Mergers, Acquis...
ECS19 - Michael Van Horenbeeck - Divide Et Imperat Office 365 Mergers, Acquis...ECS19 - Michael Van Horenbeeck - Divide Et Imperat Office 365 Mergers, Acquis...
ECS19 - Michael Van Horenbeeck - Divide Et Imperat Office 365 Mergers, Acquis...
 
ECS19 - Christina Wheeler - Become Data Modeling Superhero
ECS19 - Christina Wheeler - Become Data Modeling SuperheroECS19 - Christina Wheeler - Become Data Modeling Superhero
ECS19 - Christina Wheeler - Become Data Modeling Superhero
 
ECS19 - Vesa Juvonen - SharePoint and Office 365 Development PowerClass
ECS19 - Vesa Juvonen - SharePoint and Office 365 Development PowerClassECS19 - Vesa Juvonen - SharePoint and Office 365 Development PowerClass
ECS19 - Vesa Juvonen - SharePoint and Office 365 Development PowerClass
 
ECS19 - Paolo Pialorsi - Building Portals with modern SharePoint experiences
ECS19 - Paolo Pialorsi - Building Portals with modern SharePoint experiencesECS19 - Paolo Pialorsi - Building Portals with modern SharePoint experiences
ECS19 - Paolo Pialorsi - Building Portals with modern SharePoint experiences
 
ECS19 - Nicki Borell - Microsoft Cybersecurity Reference Architecture
ECS19 - Nicki Borell - Microsoft Cybersecurity Reference ArchitectureECS19 - Nicki Borell - Microsoft Cybersecurity Reference Architecture
ECS19 - Nicki Borell - Microsoft Cybersecurity Reference Architecture
 
ECS19 - Vesa Juvonen, Paolo Pialorsi - Building “modern” portals with SharePo...
ECS19 - Vesa Juvonen, Paolo Pialorsi - Building “modern” portals with SharePo...ECS19 - Vesa Juvonen, Paolo Pialorsi - Building “modern” portals with SharePo...
ECS19 - Vesa Juvonen, Paolo Pialorsi - Building “modern” portals with SharePo...
 
ECS19 - Bill Ayers - UNLOCK YOUR BUSINESS KNOWLEDGE WITH THE MICROSOFT GRAPH,...
ECS19 - Bill Ayers - UNLOCK YOUR BUSINESS KNOWLEDGE WITH THE MICROSOFT GRAPH,...ECS19 - Bill Ayers - UNLOCK YOUR BUSINESS KNOWLEDGE WITH THE MICROSOFT GRAPH,...
ECS19 - Bill Ayers - UNLOCK YOUR BUSINESS KNOWLEDGE WITH THE MICROSOFT GRAPH,...
 
ECS19 - Toni Pohl - Develop intelligent apps for the Modern Workplace
ECS19 - Toni Pohl - Develop intelligent apps for the Modern WorkplaceECS19 - Toni Pohl - Develop intelligent apps for the Modern Workplace
ECS19 - Toni Pohl - Develop intelligent apps for the Modern Workplace
 
ECS19 - Thomas Goelles, Stephan Bisser - Unite your workplace with Microsoft'...
ECS19 - Thomas Goelles, Stephan Bisser - Unite your workplace with Microsoft'...ECS19 - Thomas Goelles, Stephan Bisser - Unite your workplace with Microsoft'...
ECS19 - Thomas Goelles, Stephan Bisser - Unite your workplace with Microsoft'...
 
ECS19 - Steven Collier - Live Events in Teams, Yammer and Stream using Extern...
ECS19 - Steven Collier - Live Events in Teams, Yammer and Stream using Extern...ECS19 - Steven Collier - Live Events in Teams, Yammer and Stream using Extern...
ECS19 - Steven Collier - Live Events in Teams, Yammer and Stream using Extern...
 
ECS19 - Samuel Zuercher - Do I still need an Intranet or is MS Teams just eno...
ECS19 - Samuel Zuercher - Do I still need an Intranet or is MS Teams just eno...ECS19 - Samuel Zuercher - Do I still need an Intranet or is MS Teams just eno...
ECS19 - Samuel Zuercher - Do I still need an Intranet or is MS Teams just eno...
 
ECS19 - Rodrigo Pinto - Modernize Your Classic SharePoint Sites
ECS19 - Rodrigo Pinto - Modernize Your Classic SharePoint SitesECS19 - Rodrigo Pinto - Modernize Your Classic SharePoint Sites
ECS19 - Rodrigo Pinto - Modernize Your Classic SharePoint Sites
 
ECS19 - Rodrigo Pinto - Migrating to Teams, real cases and scenarios
ECS19 - Rodrigo Pinto - Migrating to Teams, real cases and scenariosECS19 - Rodrigo Pinto - Migrating to Teams, real cases and scenarios
ECS19 - Rodrigo Pinto - Migrating to Teams, real cases and scenarios
 
ECS19 - Radi Atanassov - Using Azure Functions as Your Business Logic Layer
ECS19 - Radi Atanassov - Using Azure Functions as Your Business Logic LayerECS19 - Radi Atanassov - Using Azure Functions as Your Business Logic Layer
ECS19 - Radi Atanassov - Using Azure Functions as Your Business Logic Layer
 
ECS19 - Paul Collinge - Transforming enterprise network connectivity in a clo...
ECS19 - Paul Collinge - Transforming enterprise network connectivity in a clo...ECS19 - Paul Collinge - Transforming enterprise network connectivity in a clo...
ECS19 - Paul Collinge - Transforming enterprise network connectivity in a clo...
 
ECS19 - Patrick Rodgers - What’s New with PnPjs
ECS19 - Patrick Rodgers - What’s New with PnPjsECS19 - Patrick Rodgers - What’s New with PnPjs
ECS19 - Patrick Rodgers - What’s New with PnPjs
 
ECS19 - Patrick Curran - Expanding User Profiles with Line of Business Data (...
ECS19 - Patrick Curran - Expanding User Profiles with Line of Business Data (...ECS19 - Patrick Curran - Expanding User Profiles with Line of Business Data (...
ECS19 - Patrick Curran - Expanding User Profiles with Line of Business Data (...
 

Dernier

%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Dernier (20)

%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Generic or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisionsGeneric or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisions
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 

ECS19 - Thomas Vochten - ESSENTIAL DATABASE ADMINISTRATION SKILLS FOR SHAREPOINT PROFESSIONALS

  • 1.
  • 2. ESSENTIAL DATABASE ADMINISTRATION SKILLS FOR SHAREPOINT PROFESSIONALS Thomas Vochten @thomasvochten
  • 3. ♡ DIAMOND AND PLATINUM SPONSORS ♡
  • 4. Thomas Vochten Microsoft MVP. Technical Evangelist. Solution advisor. @thomasvochten https://thomasvochten.com mail@thomasvochten.com
  • 5. I’m not a real DBA
  • 6. Meet the Involuntary DBA Someone who is made to assume a DBA role or take on DBA responsibilities, usually against their will Paul Randal
  • 7.
  • 9.
  • 10.
  • 11. When we installed SharePoint http://dbareactions.com
  • 12. When I tell my junior DBA, “You’d get valuable experience if you took over the Sharepoint project.” http://dbareactions.com
  • 13. When I tell my new junior DBA he’ll be taking over the SharePoint databases http://dbareactions.com
  • 14. When the project manager says, “Can we put the SharePoint databases on your server?” http://dbareactions.com
  • 15. When I get a quarter-million-dollar budget for a new project, and it’s a Microsoft SharePoint project http://dbareactions.com
  • 16. When a user comes into my cube and starts complaining about SharePoint performance http://dbareactions.com
  • 17. When Microsoft tells me to set MAXDOP to 1 for SharePoint http://dbareactions.com
  • 18. Agenda • Essential tools for the involuntary DBA • SharePoint & SQL Server • Frequent operational problems • Platform setup and configuration tips
  • 19. Your primary responsibilities as DBA • Backups • Reliability • Performance
  • 20. Show me some tools! Let’s skip the manual…
  • 21. Brent Ozar’s “First Responder Kit” sp_Blitz How am I doing? sp_BlitzFirst Where’s the bottleneck? sp_BlitzBackups How far back can I go? Great collection of free diagnostic SQL Scripts https://www.brentozar.com/responder/
  • 22. Brent Ozar’s First Responder Kit Leverage the power of the SQL community DEMO
  • 23. Ola Hallengren’s “Maintenance Solution” Backups Consistency checks Index Maintenance Free, tried & true scripts with ready-to-schedule jobs https://ola.hallengren.com/ The industry standard. Period. Time to stop creating Maintenance Plans.
  • 24. Ola Hallengren’s Maintenance Scripts Leverage the power of the SQL community DEMO
  • 25. Pro Tip Leave a reminder for the other involuntary DBA’s
  • 26. Free, community-driven, contributions welcome https://dbatools.io PowerShell Module with hundreds of cmdlets
  • 27.
  • 28. dbatools to the rescue Leverage the power of the SQL community DEMO
  • 29. Glenn Berry’s “Diagnostic Scripts” Free SQL Scripts available for every SQL Server release http://sqlserverperformance.wordpress.com If you need to dig in deeper…
  • 30. Glenn Berry’s Diagnostic Scripts Leverage the power of the SQL community DEMO
  • 31. Essential Resources Where do I go for SQL help? • Paul Randal (blog | twitter) • Kimberly Tripp (blog| twitter) • Brent Ozar (blog| twitter) • Glenn Berry (blog| twitter)
  • 32. Get Help - Fast! #sqlhelp on Twitter
  • 34. Importance to SharePoint • SharePoint performance impact • Almost everything is stored in SQL • Contributes to your HA/DR strategy
  • 35. SharePoint makes DBA’s cry • The support policies • The strange schema • The database settings • The default database names • The server rights we ask for • The unconventional maintenance practices • SharePoint likes to create its databases all by itself • …
  • 36. More frustrations… • Auto Create Statistics = off • Auto Update Statistics = off • GUIDS as clustered indexes • No real referential integrity • Model Database is not used by SharePoint consistently
  • 37. Don’t • Adding database triggers • Adding new indexes or changing existing indexes within tables • Adding, changing, or deleting any primary or foreign key relationships • Changing or deleting existing stored procedures • Calling existing stored procedures directly • Adding new stored procedures • Adding, changing, or deleting any data in any table of any of the databases • Adding, changing, or deleting any columns in any table • Making any modification to the database schema • Adding tables to any of the databases • Changing the database collation • Running DBCC_CHECKDB WITH REPAIR_ALLOW_DATA_LOSS • Enabling SQL Server change data capture (CDC) • Enabling SQL Server transactional replication • Enabling SQL Server merge replication
  • 38. Do • Use the GUI • Use PowerShell • Use the API’s
  • 39. Essential Reading KB841057 supported & unsupported actions to databases Database Maintenance for SharePoint 2010 Products * Old, but still relevant!
  • 40. Database, anyone? A lot of SharePoint databases Each with different needs
  • 41. Even more frustrations... GUIDS all over the place
  • 42. Get rid of the GUID Grey wizard GOOD White wizard BAD
  • 43. PowerShell to the rescue Always script farm configuration Use any script you like, but know what it does!
  • 45. Recovery Models Essential reading: Understanding Logging & Recovery http://technet.microsoft.com/en-us/magazine/2009.02.logging.aspx • Simple recovery model - last full backup • Full recovery model - up to the minute restore
  • 46. “Why does this log file keeps on growing?”
  • 47. DEMO
  • 49. Reducing fragmentation • SharePoint Health Analyzer • Perform index maintenance manually (Ola Hallengren) Consider rebuilding indexes when fragmented over 30% (for content databases)
  • 50. Only shrink files when needed Just because you can, doesn’t mean you should • Causes massive fragmentation • Autoshrink is the root of all evil! • Rebuild indexes & keep free space Can be considered after special SharePoint operations like moving a site from one database to another
  • 51. DEMO
  • 52. Platform setup and configuration tips
  • 53. General considerations • SQL is all about mem/disk IO/cpu • Dedicate a SQL instance to SharePoint • Go ahead and virtualize – if you know what you’re doing
  • 54. Plan your disks Differentiate & prioritize based on IO needs • tempdb • logs • search • other databases
  • 55. Prepare your disks Check/modify: Up to 50% io performance gains measured! Partition alignment 1024K everywhere Allocation unit size 64K for SQL data & logs
  • 56. Only install the feature you need: Database Engine
  • 57. Always use a domain user as service account Set the SQL Server Agent to start automatically
  • 58. Set the right instance collation for SharePoint: Latin1_General_CI_AS_KS_WS
  • 59. Configure data & log file placement from the start
  • 60. Post setup Enable instant file initialization From SQL 2016 on, you can do this during setup • Speeds up data file operations enormously • Disables zeroing out data files • Does not work for log files • Set “Perform volume maintenance tasks” https://msdn.microsoft.com/en-us/library/ms175935.aspx
  • 62. Turn on backup compression
  • 63. Set “Optimize for Ad hoc Workloads” to True
  • 64. Set Maximum Degree of Parallellism to 1
  • 65. Setting Maximum Degree of Parallellism is mandatory in SharePoint 2013/2016/2019
  • 66. Database level settings • Consider multiple data files • Tune autogrowth settings (no %) • Presize databases • Don’t forget TempDB! From SQL 2016 on, you can do this during setup
  • 67. SQL Aliases • Use SQL Aliases to connect SharePoint to SQL Server • Use multiple aliases for different database types: core farm databases content databases search databases logging database
  • 68. Resources Best practices for SQL Server in a SharePoint Server farm https://docs.microsoft.com/en-us/SharePoint/administration/best-practices-for-sql-server-in-a-sharepoint-server-farm Storage and SQL Server capacity planning and configuration for SharePoint Server https://docs.microsoft.com/en-us/SharePoint/administration/storage-and-sql-server-capacity-planning-and-configuration Overview of SQL Server in SharePoint Server 2016 and 2019 environments https://docs.microsoft.com/en-us/sharepoint/administration/overview-of-sql-server-in-sharepoint-server-2016-and-2019-environments Support for changes to the databases that are used by SharePoint http://support.microsoft.com/kb/841057 Database maintenance for SharePoint https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-server-2010/cc262731(v=office.14) Supported high availability and disaster recovery options for SharePoint databases https://docs.microsoft.com/en-us/SharePoint/administration/supported-high-availability-and-disaster-recovery-options-for-sharepoint-databas
  • 69. Key Takeaways • Leverage the power of free community tools • Backups, backups, backups (and restores) • Learn about what is supported and what not • Understand how logging & recovery works • Don’t shrink unless you know what you’re doing • Learn about fundamental instance & database level settings