SlideShare a Scribd company logo
1 of 28
SQL Server for
SharePoint geeks
A gentle introduction




Thomas Vochten • September 8, 2011
About Me
• SharePoint Infrastructure Consultant at
  Atos (before Siemens IT Solutions & Services)
• Accidental DBA
• Lousy .NET developer



            thomasvochten.com
            @thomasvochten
What we’ll cover
•   Disclaimer
•   Who needs a DBA anyway?
•   Importance of SQL for SharePoint
•   The SQL Landscape
•   Configuration tips
•   Common problems
•   Troubleshooting Tips
•   Counter Intelligence
•   Resources
Disclaimer
• There are no exact truths in SQL
• The standard answer always is...
PART 1 - SETTING THE SCENE
Who needs a DBA anyway?
• A quick poll...


  Who manages a production SQL instance
        that isn’t a *real* DBA?

• Don’t worry - you’re not alone...


               Meet the “Accidental” or
                 “Involuntary” DBA
Common Problems
•   Data and log file management
•   Backups
•   Corruption
•   Performance troubleshooting
•   Index fragmentation
•   Configuration issues
Importance for SharePoint
• SharePoint performance = SQL performance
• All your data is in a database
• The’re a lot of them:
SharePoint Databases
Other Important Considerations
• Capacity planning
• Performance planning
• HA / DR requirements
• Information Architecture
• Limits & Boundaries: from 100 GB to 200 GB to 4 TB and
  beyond
Why SharePoint makes DBAs cry
• GUIDs all over the place




• Don’t touch! support policy
Getting rid of the GUID
• Grey wizard is good




• White wizard is bad
SQL Landscape
Software Requirements

• SharePoint 2010 requires 64 bit all the way
• SQL Server 2008 R2 is your best friend
• Other 2008 or 2005 editions are supported too

Editions

• Standard or Enterprise?
Standard vs Enterprise
• Hardware
                      Standard   Enterprise
  # CPU               4          8
  Memory              64 GB      2 TB


• Enterprise-Only

  •   Snaphots
  •   TDE
  •   More online operations
  •   PowerPivot
What about RBS?
Just because you can, doesn’t mean you should

Pro
• Potentially cheaper storage
• Move-SPSite (after SP1)
• Disk I/O optimizations

Cons
• Backup / restore complexity
• Not supported together with mirroring
• General operational burden
• 3rd party software
A case for RBS
• Heavily focused on document libraries
• The vast majority ( >70%) of those files exceed 1MB in size.
• The SharePoint content databases holding these files are
  relatively large ( >200GB) now or in the immediately
  foreseeable future
• You have Disaster Recovery tools that are either directly RBS
  aware, or have processes designed to synchronize backups
• You have highly skilled, expert SQL and Windows
  administration staff that is currently or has the capacity and
  directive to be well trained in RBS use, administration, and
  troubleshooting

[Source: Chris Mullendore, MSFT PFE]
PART 2 - CONFIGURATION TIPS
Pre Setup (1)
• Use the latest service pack
• Consider the latest cumulative update
• Different databases: different I/O needs


                          TempDB
                            Logs
                       Search DB’s
                      Content DB’s
Pre Setup (2)
•   Use a normal domain user account as service account
•   Learn about instant file initialization
•   Learn about “lock pages in memory”
•   Check partition alignment
•   Perform a stresstest with sqlio
Setup
• Choose the right product features
• Change the default database paths
• Put TempDB in the right place immediately




• Only use Windows Authentication Mode
Post Setup
• Make sure SQL Server Agent is started
• Check Windows Firewall
• Explore server & database options

  •   Minimum & maximum memory usage
  •   Set fill factor to 80% for SharePoint
  •   MAXDOP to 1 for SharePoint
  •   Backup compression
  •   Autogrowth settings
  •   # of database files per database
  •   Model database (not for SharePoint)

• Create and test SQL aliases on your SharePoint servers
• Pregrow your SharePoint databases!
Maintaining SQL
• Check database integrity weekly with DBCC CHECKDB
• Look at index fragmentation




• Learn about Maintenance Plans

*Source: “Database Maintenance for Microsoft SharePoint 2010 Products” (revised)+
Caution
• Shrinking database files: are you sure?
• Autoshrink: the exception to the “it depends” rule
          It’s evil!
Common Problems, Revisited
Most common issues
• Data and log file management
• Backups

Due to lack of understanding of
• Recovery models and their influence on space and backups
• Backup types (full, differential & logs)

Recovery models
• Choosing between SIMPLE or FULL recovery model and what
  they bring to the table
Troubleshooting Tips
Learn how to use the tools
• Perfmon
• Activity Monitor
• PAL
• Profiler

Learn the basics, like
• Don’t restart SQL server in case of corruption
• Don’t detach and reattach problematic databases
Counter Intelligence
Get to know your SQL server, fast!
• Blitz! scripts by Brent Ozar
• Diagnostic scripts by Glenn Berry
Resources
Where do I go for SQL help?

Paul Randal (blog | twitter)
Kimberly Tripp (blog| twitter)
Brent Ozar (blog| twitter)
Glenn Berry (blog| twitter)

Fancy some blogs?
http://thomaslarock.com/rankings

Get help – fast!
#sqlhelp on Twitter
We now have #sphelp too you know 
Quick Wins Summary
•   Partition Alignment
•   Instant File Initialization
•   Databases & logs on different spindles
•   Multiple datafiles, but not for TempDB or for logfiles
•   Tune server memory usage
•   Fill factor to 80%
•   MAXDOP to 1
•   Tune autogrowth settings
•   Use SQL aliases
•   Presize your databases
•   Check integrity often
•   No shrinking of data files (autoshrink is evil)
•   Know the recovery models & their impact on drive space
Thank you

More Related Content

What's hot

Bringing DevOps to the Database
Bringing DevOps to the DatabaseBringing DevOps to the Database
Bringing DevOps to the DatabaseMichaela Murray
 
SQL Server 2016 Temporal Tables
SQL Server 2016 Temporal TablesSQL Server 2016 Temporal Tables
SQL Server 2016 Temporal TablesDavide Mauri
 
MySQL Performance Tuning: Top 10 Tips
MySQL Performance Tuning: Top 10 TipsMySQL Performance Tuning: Top 10 Tips
MySQL Performance Tuning: Top 10 TipsOSSCube
 
SQL Server 2016 What's New For Developers
SQL Server 2016  What's New For DevelopersSQL Server 2016  What's New For Developers
SQL Server 2016 What's New For DevelopersDavide Mauri
 
Databases & Microsoft SQL Server
Databases & Microsoft SQL ServerDatabases & Microsoft SQL Server
Databases & Microsoft SQL ServerMahmoud Abdallah
 
11 Goals of High Functioning SQL Developers
11 Goals of High Functioning SQL Developers11 Goals of High Functioning SQL Developers
11 Goals of High Functioning SQL DevelopersIke Ellis
 
SQLSaturday 664 - Troubleshoot SQL Server performance problems like a Microso...
SQLSaturday 664 - Troubleshoot SQL Server performance problems like a Microso...SQLSaturday 664 - Troubleshoot SQL Server performance problems like a Microso...
SQLSaturday 664 - Troubleshoot SQL Server performance problems like a Microso...Marek Maśko
 
NoSql - mayank singh
NoSql - mayank singhNoSql - mayank singh
NoSql - mayank singhMayank Singh
 
Zapping ever faster: how Zap sped up by two orders of magnitude using RavenDB
Zapping ever faster: how Zap sped up by two orders of magnitude using RavenDBZapping ever faster: how Zap sped up by two orders of magnitude using RavenDB
Zapping ever faster: how Zap sped up by two orders of magnitude using RavenDBOren Eini
 
Role of-analytics-in-db as-life
Role of-analytics-in-db as-lifeRole of-analytics-in-db as-life
Role of-analytics-in-db as-lifeNavneet Upneja
 
Hello World with EDB Postgres
Hello World with EDB PostgresHello World with EDB Postgres
Hello World with EDB PostgresEDB
 
BIWUG1303 - HA & DR
BIWUG1303 - HA & DRBIWUG1303 - HA & DR
BIWUG1303 - HA & DRBIWUG
 
Got documents Code Mash Revision
Got documents Code Mash RevisionGot documents Code Mash Revision
Got documents Code Mash RevisionMaggie Pint
 
Toad for Sybase Datasheet
Toad for Sybase DatasheetToad for Sybase Datasheet
Toad for Sybase DatasheetToad4Sybase
 
Geek Sync | Azure Cloud & You: First Steps for the DBA
Geek Sync | Azure Cloud & You: First Steps for the DBAGeek Sync | Azure Cloud & You: First Steps for the DBA
Geek Sync | Azure Cloud & You: First Steps for the DBAIDERA Software
 

What's hot (20)

Bringing DevOps to the Database
Bringing DevOps to the DatabaseBringing DevOps to the Database
Bringing DevOps to the Database
 
SQL Server 2016 Temporal Tables
SQL Server 2016 Temporal TablesSQL Server 2016 Temporal Tables
SQL Server 2016 Temporal Tables
 
MySQL Performance Tuning: Top 10 Tips
MySQL Performance Tuning: Top 10 TipsMySQL Performance Tuning: Top 10 Tips
MySQL Performance Tuning: Top 10 Tips
 
Topic1
Topic1Topic1
Topic1
 
SQL Server 2016 What's New For Developers
SQL Server 2016  What's New For DevelopersSQL Server 2016  What's New For Developers
SQL Server 2016 What's New For Developers
 
Databases & Microsoft SQL Server
Databases & Microsoft SQL ServerDatabases & Microsoft SQL Server
Databases & Microsoft SQL Server
 
11 Goals of High Functioning SQL Developers
11 Goals of High Functioning SQL Developers11 Goals of High Functioning SQL Developers
11 Goals of High Functioning SQL Developers
 
SQLSaturday 664 - Troubleshoot SQL Server performance problems like a Microso...
SQLSaturday 664 - Troubleshoot SQL Server performance problems like a Microso...SQLSaturday 664 - Troubleshoot SQL Server performance problems like a Microso...
SQLSaturday 664 - Troubleshoot SQL Server performance problems like a Microso...
 
NoSql - mayank singh
NoSql - mayank singhNoSql - mayank singh
NoSql - mayank singh
 
Manageability Enhancements of SQL Server 2012
Manageability Enhancements of SQL Server 2012Manageability Enhancements of SQL Server 2012
Manageability Enhancements of SQL Server 2012
 
In Memory Cahce Structure
In Memory Cahce StructureIn Memory Cahce Structure
In Memory Cahce Structure
 
Zapping ever faster: how Zap sped up by two orders of magnitude using RavenDB
Zapping ever faster: how Zap sped up by two orders of magnitude using RavenDBZapping ever faster: how Zap sped up by two orders of magnitude using RavenDB
Zapping ever faster: how Zap sped up by two orders of magnitude using RavenDB
 
Role of-analytics-in-db as-life
Role of-analytics-in-db as-lifeRole of-analytics-in-db as-life
Role of-analytics-in-db as-life
 
SPA vs. MPA
SPA vs. MPASPA vs. MPA
SPA vs. MPA
 
Lecture 9: Dynamic web application
Lecture 9: Dynamic web applicationLecture 9: Dynamic web application
Lecture 9: Dynamic web application
 
Hello World with EDB Postgres
Hello World with EDB PostgresHello World with EDB Postgres
Hello World with EDB Postgres
 
BIWUG1303 - HA & DR
BIWUG1303 - HA & DRBIWUG1303 - HA & DR
BIWUG1303 - HA & DR
 
Got documents Code Mash Revision
Got documents Code Mash RevisionGot documents Code Mash Revision
Got documents Code Mash Revision
 
Toad for Sybase Datasheet
Toad for Sybase DatasheetToad for Sybase Datasheet
Toad for Sybase Datasheet
 
Geek Sync | Azure Cloud & You: First Steps for the DBA
Geek Sync | Azure Cloud & You: First Steps for the DBAGeek Sync | Azure Cloud & You: First Steps for the DBA
Geek Sync | Azure Cloud & You: First Steps for the DBA
 

Viewers also liked

BIWUG 01/09/2005 IW Technologies, what's to come in 2006?
BIWUG 01/09/2005 IW Technologies, what's to come in 2006?BIWUG 01/09/2005 IW Technologies, what's to come in 2006?
BIWUG 01/09/2005 IW Technologies, what's to come in 2006?BIWUG
 
Karine bosch caching-spsbe14
Karine bosch caching-spsbe14Karine bosch caching-spsbe14
Karine bosch caching-spsbe14BIWUG
 
SharePoint Saturday Belgium 2014 - How to make your CEO understand or how to ...
SharePoint Saturday Belgium 2014 - How to make your CEO understand or how to ...SharePoint Saturday Belgium 2014 - How to make your CEO understand or how to ...
SharePoint Saturday Belgium 2014 - How to make your CEO understand or how to ...BIWUG
 
Penny coventry auto-bp-spsbe31
Penny coventry auto-bp-spsbe31Penny coventry auto-bp-spsbe31
Penny coventry auto-bp-spsbe31BIWUG
 
SharePoint Saturday Belgium 2014 Killer combos: SharePoint, Project Siena and...
SharePoint Saturday Belgium 2014 Killer combos: SharePoint, Project Siena and...SharePoint Saturday Belgium 2014 Killer combos: SharePoint, Project Siena and...
SharePoint Saturday Belgium 2014 Killer combos: SharePoint, Project Siena and...BIWUG
 
SharePoint Saturday Belgium 2014 - Best Practices for Configuring the ShareP...
SharePoint Saturday Belgium 2014 -  Best Practices for Configuring the ShareP...SharePoint Saturday Belgium 2014 -  Best Practices for Configuring the ShareP...
SharePoint Saturday Belgium 2014 - Best Practices for Configuring the ShareP...BIWUG
 
BIWUG 20/02/2006 Backup & Restore with SharePoint 2003
BIWUG 20/02/2006 Backup & Restore with SharePoint 2003BIWUG 20/02/2006 Backup & Restore with SharePoint 2003
BIWUG 20/02/2006 Backup & Restore with SharePoint 2003BIWUG
 

Viewers also liked (7)

BIWUG 01/09/2005 IW Technologies, what's to come in 2006?
BIWUG 01/09/2005 IW Technologies, what's to come in 2006?BIWUG 01/09/2005 IW Technologies, what's to come in 2006?
BIWUG 01/09/2005 IW Technologies, what's to come in 2006?
 
Karine bosch caching-spsbe14
Karine bosch caching-spsbe14Karine bosch caching-spsbe14
Karine bosch caching-spsbe14
 
SharePoint Saturday Belgium 2014 - How to make your CEO understand or how to ...
SharePoint Saturday Belgium 2014 - How to make your CEO understand or how to ...SharePoint Saturday Belgium 2014 - How to make your CEO understand or how to ...
SharePoint Saturday Belgium 2014 - How to make your CEO understand or how to ...
 
Penny coventry auto-bp-spsbe31
Penny coventry auto-bp-spsbe31Penny coventry auto-bp-spsbe31
Penny coventry auto-bp-spsbe31
 
SharePoint Saturday Belgium 2014 Killer combos: SharePoint, Project Siena and...
SharePoint Saturday Belgium 2014 Killer combos: SharePoint, Project Siena and...SharePoint Saturday Belgium 2014 Killer combos: SharePoint, Project Siena and...
SharePoint Saturday Belgium 2014 Killer combos: SharePoint, Project Siena and...
 
SharePoint Saturday Belgium 2014 - Best Practices for Configuring the ShareP...
SharePoint Saturday Belgium 2014 -  Best Practices for Configuring the ShareP...SharePoint Saturday Belgium 2014 -  Best Practices for Configuring the ShareP...
SharePoint Saturday Belgium 2014 - Best Practices for Configuring the ShareP...
 
BIWUG 20/02/2006 Backup & Restore with SharePoint 2003
BIWUG 20/02/2006 Backup & Restore with SharePoint 2003BIWUG 20/02/2006 Backup & Restore with SharePoint 2003
BIWUG 20/02/2006 Backup & Restore with SharePoint 2003
 

Similar to 1. SQL Server forSharePoint geeksA gentle introductionThomas Vochten • September 8, 2011

Introduction to SharePoint for SQLserver DBAs
Introduction to SharePoint for SQLserver DBAsIntroduction to SharePoint for SQLserver DBAs
Introduction to SharePoint for SQLserver DBAsSteve Knutson
 
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-CinncinatiJ.D. Wade
 
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 SQLJ.D. Wade
 
ECMDay2015 - Kent Agerlund – Configuration Manager 2012 – A Site Review
ECMDay2015 - Kent Agerlund – Configuration Manager 2012 – A Site ReviewECMDay2015 - Kent Agerlund – Configuration Manager 2012 – A Site Review
ECMDay2015 - Kent Agerlund – Configuration Manager 2012 – A Site ReviewKenny Buntinx
 
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...J.D. Wade
 
How_To_Soup_Up_Your_Farm
How_To_Soup_Up_Your_FarmHow_To_Soup_Up_Your_Farm
How_To_Soup_Up_Your_FarmNigel Price
 
ECS19 - Thomas Vochten - ESSENTIAL DATABASE ADMINISTRATION SKILLS FOR SHAREPO...
ECS19 - Thomas Vochten - ESSENTIAL DATABASE ADMINISTRATION SKILLS FOR SHAREPO...ECS19 - Thomas Vochten - ESSENTIAL DATABASE ADMINISTRATION SKILLS FOR SHAREPO...
ECS19 - Thomas Vochten - ESSENTIAL DATABASE ADMINISTRATION SKILLS FOR SHAREPO...European Collaboration Summit
 
What SQL DBA's need to know about SharePoint-St. Louis 2013
What SQL DBA's need to know about SharePoint-St. Louis 2013What SQL DBA's need to know about SharePoint-St. Louis 2013
What SQL DBA's need to know about SharePoint-St. Louis 2013J.D. Wade
 
Data Ingestion Engine
Data Ingestion EngineData Ingestion Engine
Data Ingestion EngineAdam Doyle
 
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 SharePointJ.D. Wade
 
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 2013J.D. Wade
 
SharePoint 2010 database maintenance
SharePoint 2010 database maintenanceSharePoint 2010 database maintenance
SharePoint 2010 database maintenanceMatt Ranlett
 
Storing and managing your content in share point spsnyc
Storing and managing your content in share point spsnycStoring and managing your content in share point spsnyc
Storing and managing your content in share point spsnycBaris Bruce Tuncertan
 
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 2013J.D. Wade
 
Building perfect sql servers, every time -oops
Building perfect sql servers, every time -oopsBuilding perfect sql servers, every time -oops
Building perfect sql servers, every time -oopsJoseph D'Antoni
 
Kb 40 kevin_klineukug_reading20070717[1]
Kb 40 kevin_klineukug_reading20070717[1]Kb 40 kevin_klineukug_reading20070717[1]
Kb 40 kevin_klineukug_reading20070717[1]shuwutong
 
SQL Server Upgrade and Consolidation - Methodology and Approach
SQL Server Upgrade and Consolidation - Methodology and ApproachSQL Server Upgrade and Consolidation - Methodology and Approach
SQL Server Upgrade and Consolidation - Methodology and ApproachIndra Dharmawan
 
The 5 Minute MySQL DBA
The 5 Minute MySQL DBAThe 5 Minute MySQL DBA
The 5 Minute MySQL DBAIrawan Soetomo
 
SharePoint 2013 Performance Analysis - Robi Vončina
SharePoint 2013 Performance Analysis - Robi VončinaSharePoint 2013 Performance Analysis - Robi Vončina
SharePoint 2013 Performance Analysis - Robi VončinaSPC Adriatics
 
Schema less table & dynamic schema
Schema less table & dynamic schemaSchema less table & dynamic schema
Schema less table & dynamic schemaDavide Mauri
 

Similar to 1. SQL Server forSharePoint geeksA gentle introductionThomas Vochten • September 8, 2011 (20)

Introduction to SharePoint for SQLserver DBAs
Introduction to SharePoint for SQLserver DBAsIntroduction to SharePoint for SQLserver DBAs
Introduction to SharePoint for SQLserver DBAs
 
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
 
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
 
ECMDay2015 - Kent Agerlund – Configuration Manager 2012 – A Site Review
ECMDay2015 - Kent Agerlund – Configuration Manager 2012 – A Site ReviewECMDay2015 - Kent Agerlund – Configuration Manager 2012 – A Site Review
ECMDay2015 - Kent Agerlund – Configuration Manager 2012 – A Site Review
 
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...
 
How_To_Soup_Up_Your_Farm
How_To_Soup_Up_Your_FarmHow_To_Soup_Up_Your_Farm
How_To_Soup_Up_Your_Farm
 
ECS19 - Thomas Vochten - ESSENTIAL DATABASE ADMINISTRATION SKILLS FOR SHAREPO...
ECS19 - Thomas Vochten - ESSENTIAL DATABASE ADMINISTRATION SKILLS FOR SHAREPO...ECS19 - Thomas Vochten - ESSENTIAL DATABASE ADMINISTRATION SKILLS FOR SHAREPO...
ECS19 - Thomas Vochten - ESSENTIAL DATABASE ADMINISTRATION SKILLS FOR SHAREPO...
 
What SQL DBA's need to know about SharePoint-St. Louis 2013
What SQL DBA's need to know about SharePoint-St. Louis 2013What SQL DBA's need to know about SharePoint-St. Louis 2013
What SQL DBA's need to know about SharePoint-St. Louis 2013
 
Data Ingestion Engine
Data Ingestion EngineData Ingestion Engine
Data Ingestion Engine
 
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
 
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 2010 database maintenance
SharePoint 2010 database maintenanceSharePoint 2010 database maintenance
SharePoint 2010 database maintenance
 
Storing and managing your content in share point spsnyc
Storing and managing your content in share point spsnycStoring and managing your content in share point spsnyc
Storing and managing your content in share point spsnyc
 
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
 
Building perfect sql servers, every time -oops
Building perfect sql servers, every time -oopsBuilding perfect sql servers, every time -oops
Building perfect sql servers, every time -oops
 
Kb 40 kevin_klineukug_reading20070717[1]
Kb 40 kevin_klineukug_reading20070717[1]Kb 40 kevin_klineukug_reading20070717[1]
Kb 40 kevin_klineukug_reading20070717[1]
 
SQL Server Upgrade and Consolidation - Methodology and Approach
SQL Server Upgrade and Consolidation - Methodology and ApproachSQL Server Upgrade and Consolidation - Methodology and Approach
SQL Server Upgrade and Consolidation - Methodology and Approach
 
The 5 Minute MySQL DBA
The 5 Minute MySQL DBAThe 5 Minute MySQL DBA
The 5 Minute MySQL DBA
 
SharePoint 2013 Performance Analysis - Robi Vončina
SharePoint 2013 Performance Analysis - Robi VončinaSharePoint 2013 Performance Analysis - Robi Vončina
SharePoint 2013 Performance Analysis - Robi Vončina
 
Schema less table & dynamic schema
Schema less table & dynamic schemaSchema less table & dynamic schema
Schema less table & dynamic schema
 

More from BIWUG

Biwug20190425
Biwug20190425Biwug20190425
Biwug20190425BIWUG
 
Working with PowerShell, Visual Studio Code and Github for the reluctant IT Pro
Working with PowerShell, Visual Studio Code and Github for the reluctant IT ProWorking with PowerShell, Visual Studio Code and Github for the reluctant IT Pro
Working with PowerShell, Visual Studio Code and Github for the reluctant IT ProBIWUG
 
Global Office 365 Developer Bootcamp
Global Office 365 Developer BootcampGlobal Office 365 Developer Bootcamp
Global Office 365 Developer BootcampBIWUG
 
Deep dive into advanced teams development
Deep dive into advanced teams developmentDeep dive into advanced teams development
Deep dive into advanced teams developmentBIWUG
 
SharePoint wizards - no magic needed, just use Microsoft Flow
SharePoint wizards - no magic needed, just use Microsoft FlowSharePoint wizards - no magic needed, just use Microsoft Flow
SharePoint wizards - no magic needed, just use Microsoft FlowBIWUG
 
Make IT Pro's great again: Microsoft Azure for the SharePoint professional
Make IT Pro's great again: Microsoft Azure for the SharePoint professionalMake IT Pro's great again: Microsoft Azure for the SharePoint professional
Make IT Pro's great again: Microsoft Azure for the SharePoint professionalBIWUG
 
Modern collaboration in teams and projects with Microsoft 365
Modern collaboration in teams and projects with Microsoft 365Modern collaboration in teams and projects with Microsoft 365
Modern collaboration in teams and projects with Microsoft 365BIWUG
 
Mining SharePoint data with PowerBI
Mining SharePoint data with PowerBIMining SharePoint data with PowerBI
Mining SharePoint data with PowerBIBIWUG
 
Don't simply deploy, transform! Build your digital workplace in Office 365
Don't simply deploy, transform! Build your digital workplace in Office 365Don't simply deploy, transform! Build your digital workplace in Office 365
Don't simply deploy, transform! Build your digital workplace in Office 365BIWUG
 
Connect SharePoint Framework solutions to APIs secured with Azure AD
Connect SharePoint Framework solutions to APIs secured with Azure ADConnect SharePoint Framework solutions to APIs secured with Azure AD
Connect SharePoint Framework solutions to APIs secured with Azure ADBIWUG
 
Cloud First. Be Prepared
Cloud First. Be PreparedCloud First. Be Prepared
Cloud First. Be PreparedBIWUG
 
APIs, APIs Everywhere!
APIs, APIs Everywhere!APIs, APIs Everywhere!
APIs, APIs Everywhere!BIWUG
 
Advanced PowerShell for Office 365
Advanced PowerShell for Office 365Advanced PowerShell for Office 365
Advanced PowerShell for Office 365BIWUG
 
New era of customizing site provisioning
New era of customizing site provisioningNew era of customizing site provisioning
New era of customizing site provisioningBIWUG
 
Understanding SharePoint Framework Extensions
Understanding SharePoint Framework ExtensionsUnderstanding SharePoint Framework Extensions
Understanding SharePoint Framework ExtensionsBIWUG
 
Microsoft Flow in Real World Projects: 2 Years later & What's next
Microsoft Flow in Real World Projects: 2 Years later & What's nextMicrosoft Flow in Real World Projects: 2 Years later & What's next
Microsoft Flow in Real World Projects: 2 Years later & What's nextBIWUG
 
Microsoft Stream - Your enterprise video portal unleashed
Microsoft Stream - Your enterprise video portal unleashedMicrosoft Stream - Your enterprise video portal unleashed
Microsoft Stream - Your enterprise video portal unleashedBIWUG
 
What's new in SharePoint Server 2019
What's new in SharePoint Server 2019What's new in SharePoint Server 2019
What's new in SharePoint Server 2019BIWUG
 
Why you shouldn't probably care about Machine Learning
Why you shouldn't probably care about Machine LearningWhy you shouldn't probably care about Machine Learning
Why you shouldn't probably care about Machine LearningBIWUG
 
Transforming your classic team sites in group connected team sites
Transforming your classic team sites in group connected team sitesTransforming your classic team sites in group connected team sites
Transforming your classic team sites in group connected team sitesBIWUG
 

More from BIWUG (20)

Biwug20190425
Biwug20190425Biwug20190425
Biwug20190425
 
Working with PowerShell, Visual Studio Code and Github for the reluctant IT Pro
Working with PowerShell, Visual Studio Code and Github for the reluctant IT ProWorking with PowerShell, Visual Studio Code and Github for the reluctant IT Pro
Working with PowerShell, Visual Studio Code and Github for the reluctant IT Pro
 
Global Office 365 Developer Bootcamp
Global Office 365 Developer BootcampGlobal Office 365 Developer Bootcamp
Global Office 365 Developer Bootcamp
 
Deep dive into advanced teams development
Deep dive into advanced teams developmentDeep dive into advanced teams development
Deep dive into advanced teams development
 
SharePoint wizards - no magic needed, just use Microsoft Flow
SharePoint wizards - no magic needed, just use Microsoft FlowSharePoint wizards - no magic needed, just use Microsoft Flow
SharePoint wizards - no magic needed, just use Microsoft Flow
 
Make IT Pro's great again: Microsoft Azure for the SharePoint professional
Make IT Pro's great again: Microsoft Azure for the SharePoint professionalMake IT Pro's great again: Microsoft Azure for the SharePoint professional
Make IT Pro's great again: Microsoft Azure for the SharePoint professional
 
Modern collaboration in teams and projects with Microsoft 365
Modern collaboration in teams and projects with Microsoft 365Modern collaboration in teams and projects with Microsoft 365
Modern collaboration in teams and projects with Microsoft 365
 
Mining SharePoint data with PowerBI
Mining SharePoint data with PowerBIMining SharePoint data with PowerBI
Mining SharePoint data with PowerBI
 
Don't simply deploy, transform! Build your digital workplace in Office 365
Don't simply deploy, transform! Build your digital workplace in Office 365Don't simply deploy, transform! Build your digital workplace in Office 365
Don't simply deploy, transform! Build your digital workplace in Office 365
 
Connect SharePoint Framework solutions to APIs secured with Azure AD
Connect SharePoint Framework solutions to APIs secured with Azure ADConnect SharePoint Framework solutions to APIs secured with Azure AD
Connect SharePoint Framework solutions to APIs secured with Azure AD
 
Cloud First. Be Prepared
Cloud First. Be PreparedCloud First. Be Prepared
Cloud First. Be Prepared
 
APIs, APIs Everywhere!
APIs, APIs Everywhere!APIs, APIs Everywhere!
APIs, APIs Everywhere!
 
Advanced PowerShell for Office 365
Advanced PowerShell for Office 365Advanced PowerShell for Office 365
Advanced PowerShell for Office 365
 
New era of customizing site provisioning
New era of customizing site provisioningNew era of customizing site provisioning
New era of customizing site provisioning
 
Understanding SharePoint Framework Extensions
Understanding SharePoint Framework ExtensionsUnderstanding SharePoint Framework Extensions
Understanding SharePoint Framework Extensions
 
Microsoft Flow in Real World Projects: 2 Years later & What's next
Microsoft Flow in Real World Projects: 2 Years later & What's nextMicrosoft Flow in Real World Projects: 2 Years later & What's next
Microsoft Flow in Real World Projects: 2 Years later & What's next
 
Microsoft Stream - Your enterprise video portal unleashed
Microsoft Stream - Your enterprise video portal unleashedMicrosoft Stream - Your enterprise video portal unleashed
Microsoft Stream - Your enterprise video portal unleashed
 
What's new in SharePoint Server 2019
What's new in SharePoint Server 2019What's new in SharePoint Server 2019
What's new in SharePoint Server 2019
 
Why you shouldn't probably care about Machine Learning
Why you shouldn't probably care about Machine LearningWhy you shouldn't probably care about Machine Learning
Why you shouldn't probably care about Machine Learning
 
Transforming your classic team sites in group connected team sites
Transforming your classic team sites in group connected team sitesTransforming your classic team sites in group connected team sites
Transforming your classic team sites in group connected team sites
 

1. SQL Server forSharePoint geeksA gentle introductionThomas Vochten • September 8, 2011

  • 1. SQL Server for SharePoint geeks A gentle introduction Thomas Vochten • September 8, 2011
  • 2. About Me • SharePoint Infrastructure Consultant at Atos (before Siemens IT Solutions & Services) • Accidental DBA • Lousy .NET developer thomasvochten.com @thomasvochten
  • 3. What we’ll cover • Disclaimer • Who needs a DBA anyway? • Importance of SQL for SharePoint • The SQL Landscape • Configuration tips • Common problems • Troubleshooting Tips • Counter Intelligence • Resources
  • 4. Disclaimer • There are no exact truths in SQL • The standard answer always is...
  • 5. PART 1 - SETTING THE SCENE
  • 6. Who needs a DBA anyway? • A quick poll... Who manages a production SQL instance that isn’t a *real* DBA? • Don’t worry - you’re not alone... Meet the “Accidental” or “Involuntary” DBA
  • 7. Common Problems • Data and log file management • Backups • Corruption • Performance troubleshooting • Index fragmentation • Configuration issues
  • 8. Importance for SharePoint • SharePoint performance = SQL performance • All your data is in a database • The’re a lot of them:
  • 9. SharePoint Databases Other Important Considerations • Capacity planning • Performance planning • HA / DR requirements • Information Architecture • Limits & Boundaries: from 100 GB to 200 GB to 4 TB and beyond
  • 10. Why SharePoint makes DBAs cry • GUIDs all over the place • Don’t touch! support policy
  • 11. Getting rid of the GUID • Grey wizard is good • White wizard is bad
  • 12. SQL Landscape Software Requirements • SharePoint 2010 requires 64 bit all the way • SQL Server 2008 R2 is your best friend • Other 2008 or 2005 editions are supported too Editions • Standard or Enterprise?
  • 13. Standard vs Enterprise • Hardware Standard Enterprise # CPU 4 8 Memory 64 GB 2 TB • Enterprise-Only • Snaphots • TDE • More online operations • PowerPivot
  • 14. What about RBS? Just because you can, doesn’t mean you should Pro • Potentially cheaper storage • Move-SPSite (after SP1) • Disk I/O optimizations Cons • Backup / restore complexity • Not supported together with mirroring • General operational burden • 3rd party software
  • 15. A case for RBS • Heavily focused on document libraries • The vast majority ( >70%) of those files exceed 1MB in size. • The SharePoint content databases holding these files are relatively large ( >200GB) now or in the immediately foreseeable future • You have Disaster Recovery tools that are either directly RBS aware, or have processes designed to synchronize backups • You have highly skilled, expert SQL and Windows administration staff that is currently or has the capacity and directive to be well trained in RBS use, administration, and troubleshooting [Source: Chris Mullendore, MSFT PFE]
  • 16. PART 2 - CONFIGURATION TIPS
  • 17. Pre Setup (1) • Use the latest service pack • Consider the latest cumulative update • Different databases: different I/O needs TempDB Logs Search DB’s Content DB’s
  • 18. Pre Setup (2) • Use a normal domain user account as service account • Learn about instant file initialization • Learn about “lock pages in memory” • Check partition alignment • Perform a stresstest with sqlio
  • 19. Setup • Choose the right product features • Change the default database paths • Put TempDB in the right place immediately • Only use Windows Authentication Mode
  • 20. Post Setup • Make sure SQL Server Agent is started • Check Windows Firewall • Explore server & database options • Minimum & maximum memory usage • Set fill factor to 80% for SharePoint • MAXDOP to 1 for SharePoint • Backup compression • Autogrowth settings • # of database files per database • Model database (not for SharePoint) • Create and test SQL aliases on your SharePoint servers • Pregrow your SharePoint databases!
  • 21. Maintaining SQL • Check database integrity weekly with DBCC CHECKDB • Look at index fragmentation • Learn about Maintenance Plans *Source: “Database Maintenance for Microsoft SharePoint 2010 Products” (revised)+
  • 22. Caution • Shrinking database files: are you sure? • Autoshrink: the exception to the “it depends” rule It’s evil!
  • 23. Common Problems, Revisited Most common issues • Data and log file management • Backups Due to lack of understanding of • Recovery models and their influence on space and backups • Backup types (full, differential & logs) Recovery models • Choosing between SIMPLE or FULL recovery model and what they bring to the table
  • 24. Troubleshooting Tips Learn how to use the tools • Perfmon • Activity Monitor • PAL • Profiler Learn the basics, like • Don’t restart SQL server in case of corruption • Don’t detach and reattach problematic databases
  • 25. Counter Intelligence Get to know your SQL server, fast! • Blitz! scripts by Brent Ozar • Diagnostic scripts by Glenn Berry
  • 26. Resources Where do I go for SQL help? Paul Randal (blog | twitter) Kimberly Tripp (blog| twitter) Brent Ozar (blog| twitter) Glenn Berry (blog| twitter) Fancy some blogs? http://thomaslarock.com/rankings Get help – fast! #sqlhelp on Twitter We now have #sphelp too you know 
  • 27. Quick Wins Summary • Partition Alignment • Instant File Initialization • Databases & logs on different spindles • Multiple datafiles, but not for TempDB or for logfiles • Tune server memory usage • Fill factor to 80% • MAXDOP to 1 • Tune autogrowth settings • Use SQL aliases • Presize your databases • Check integrity often • No shrinking of data files (autoshrink is evil) • Know the recovery models & their impact on drive space