SlideShare a Scribd company logo
Intro to SharePoint
for SQL Server
DBA’s
Steve Knutson | Microsoft MVP Office Servers and Services
Stratos Technology Partners Managing Director
#614 SQL Saturday South Island
Who am I?
steve@stp.co.nz | @nztechtweet
Agenda
• A bit about SharePoint Architecture
• SharePoint Databases
• How big, how many and how fast?
• Backup Recovery
• Maintenance do’s and don’ts
• If you only remember a few things
SharePoint Architecture 101
SharePoint Server
(Web and App roles)
SQL Server
Services ContentConfig
Suitable for:
• Dev and UAT
• Small Farms
Or this…
SharePoint Server
(App roles)
SQL Server
Services ContentConfig
SharePoint Server
(Web roles)
Or this!
SharePoint Server
(App roles)
SQL Server (cluster)
Services ContentConfig
SharePoint Server
(Web roles)
SharePoint Server
(App roles)
SharePoint Server
(Web roles)
What are all these databases for?
SharePoint has databases for three purposes
• Farm configuration – contains the
configuration of the entire SharePoint farm
• Service Applications – configuration and data
for SharePoint application services e.g.
Search, User Profile, Managed Metadata etc
• Content databases – contains user data e.g.
site configuration and data
A transaction is a document
SharePoint workloads are different in several
ways
• Content databases can contain documents. An
“HTTP Get” from SharePoint can return a document
(they can be big!)
• Read to Write ratios can vary – rule of thumb 80%
read, 20% write
• A ‘Full’ Search Crawl will read every item and
document in the Content Databases, generating
high I/O in SQL.
Temp DB
• Put on the fastest storage
• Use a dedicated LUN if possible
• Use “MB” rather than “%” auto-grow
• TempDB size = [MAX DB SIZE (KB)] X [0.25] / [No. CORES] = DATA FILE
SIZE (KB)
Capacity Planning
• Soft limits (there are no hard limits)
• 50,000 site collections per content db
• 1TB per content db (but smaller is recommended)
• 8 Web Front Ends per SQL server
• Understand the size and growth profile of
content
• Versioning requirements
• High growth vs archival
• Access frequency
• 80% Read, 20% write
SQL Server Memory, Disk and Network
• RAM – Minimum 4GB (Dev), Good 8-16GB,
Better >16GB
• CPU cache - >2MB L2 Cache
• CPU cores – Good 4 cores, Better >4 cores
• Disk latency – Good < 10msec, Better
<10msec (Data) <5msec (Tlog)
• Network latency (SQL to SP server) – Less
than 1ms
SQL and SharePoint Server Config
• Keep up to date with patches but confirm SP
supported version
• Use a dedicated SQL server if possible
• Plan your content databases and “scale out”
if necessary
• Use SQL Aliases
Content Databases
• Using dedicated content databases per site
collection allows you to recover individual site
collections and other management flexibility
• This is important for recovery and DR
Remote BLOB Storage
• Has some limitations
• No encryption or compression
• Best for…
• Few large BLOBs (mostly read access)
• Worst for…
• Lots of smaller BLOBs (or intensive write access)
• Requires Enterprise licensing
• Third-party add-ons make this much better
• Adds complexity
Business Data Connectivity
• Can present SQL views / tables in
SharePoint
• Can write data back into SQL
SharePoint also supports oData and REST
• Use SSIS to pull data from lists (on-premises
& cloud)
Access Services
• Access databases published to SharePoint
• Uses SQL to host tables NOT Access
• NB: Access Services is end of life for
SharePoint Online
Business Intelligence
Services (on-premises)
• PowerPivot
• PerformancePoint
• SQL Server Reporting Services
Cloud
• PowerBI (Pro license)
Secure Store
• Manages credentials for BI Services
• Works with Microsoft and non-Microsoft data
sources
• Authentication:
• Pass-through (logged in user)
• Data access account
• Non-windows accounts
• Reduces need for Kerberos (but isn't a
complete replacement)
Which Recovery model?
Microsoft recommend using both the Simple
and Full recovery models.
Full Model for these databases
• Configuration, Admin Content, Content,
Secure Store, BDC and PerformancePoint
Simple Model for these databases:
• Search and User Profile Service
Backup and Restore
• Understand what you might need to recover
• Library, List, File or list item
• Site
• Site Collection
• Web application
• Farm
• Use the recycle bins first
• Unattached database recovery
• Get sign-off on your RTO and RPO’s, don’t
assume they are the same as other systems
Maintenance
Indexes - Fragments happen! (who said by
design?)
• Performance degrades as fragmentation
increases – more I/O
• Content and Search DB’s are most
susceptible
• Use sys.dm_db_index_physical_stats, it is
more accurate that DBCC Showconfig
Maintenance Do’s
• Auto-defrag (Content Databases only)
• Shrink content db’s (but not other database
types)
• Update statistics
• Change the server wide fill factor to 70%
• Use DBCC CheckDB to check for
consistency errors
• Check that your backups are working
• Do maintenance during off-peak hours
Maintenance Don’ts
• Use maintenance plans to shrink databases
• Drop and recreate indexes! (definitely don’t
do this…)
• Shrink any databases other than Content
DB’s
• Auto-shrink databases
• Run maintenance tasks like DBCC or index
rebuilds during business hours
• Directly update SharePoint databases!!!
Know your environment
SharePoint is a platform with a great deal of
flexibility and wide range of uses. Your
environment will be unique, so take time to
understand normal:
• Setup performance counters
• Monitor your environment doing Search Crawls
• Be proactive about database growth
• Prepare for bulk data migrations
• Practice recovery scenarios
If you only remember a few things
• Always use a SQL Alias for SharePoint
• Use multiple content databases if you have
lots of data (plan for scale)
• You can scale out or scale up
• Capacity Planning is important
• Measure “YOUR” environment
• Understand “YOUR” recovery options
Q & A time
SQL SATURDAY | #614 | South Island 2017
Steve Knutson | Microsoft MVP
Please fill out your evaluation forms.
You have them in your A4 pack from registration.
Please put them in the box at the front of the room.
There are spot prizes for completed evaluation forms.
SQL SATURDAY | #614 | South Island 2017
Steve Knutson | Microsoft MVP
Please fill out your evaluation forms.
You have them in your A4 pack from registration.
Please put them in the box at the front of the room.
There are spot prizes for completed evaluation forms.
Thank you to our sponsors:
Gold Sponsors
Silver Sponsors
Bronze Sponsors

More Related Content

PPTX
What SQL DBA's need to know about SharePoint
PPTX
Azure DocumentDB 101
PPTX
Infrastructure Best Practices for SharePoint On-Premises presented by Michael...
PPTX
What SQL DBA's need to know about SharePoint-St. Louis 2013
PPTX
Connected at the hip for MS BI: SharePoint and SQL
PDF
CosmosDB for DBAs & Developers
PPTX
Introduction to Azure DocumentDB
PPTX
What SharePoint Admins need to know about SQL-Cinncinati
What SQL DBA's need to know about SharePoint
Azure DocumentDB 101
Infrastructure Best Practices for SharePoint On-Premises presented by Michael...
What SQL DBA's need to know about SharePoint-St. Louis 2013
Connected at the hip for MS BI: SharePoint and SQL
CosmosDB for DBAs & Developers
Introduction to Azure DocumentDB
What SharePoint Admins need to know about SQL-Cinncinati

What's hot (20)

PDF
DBaaS with EDB Postgres on AWS
 
PDF
SQL Server 2019 CTP2.4
PPTX
IN-MEMORY DATABASE SYSTEMS FOR BIG DATA MANAGEMENT.SAP HANA DATABASE.
PDF
Introduction to azure document db
PPTX
Introduction to CosmosDB - Azure Bootcamp 2018
PPTX
UNC Chapel Hill Ctc Retreat 2014 SAS Visual Analytics and Business Intelligence
PDF
What database
PPTX
SPS Kansas City: What SharePoint Admin need to know about SQL
PDF
SQL Server and SharePoint - Best Practices presented by Steffen Krause, Micro...
PPTX
NoSql Data Management
PPTX
What SQL DBAs need to know about SharePoint-Indianapolis 2013
PPTX
Comparative study of modern databases
PPTX
SQL server 2016 New Features
PPTX
NoSql - mayank singh
PPTX
Sap bods training in hyderabad
PPTX
Introduction to NOSQL databases
PPTX
Everything you need to know about SQL Server 2016
PPTX
Data Modeling for NoSQL
PDF
SQL Server 2016 Editions
PPTX
Gs08 modernize your data platform with sql technologies wash dc
DBaaS with EDB Postgres on AWS
 
SQL Server 2019 CTP2.4
IN-MEMORY DATABASE SYSTEMS FOR BIG DATA MANAGEMENT.SAP HANA DATABASE.
Introduction to azure document db
Introduction to CosmosDB - Azure Bootcamp 2018
UNC Chapel Hill Ctc Retreat 2014 SAS Visual Analytics and Business Intelligence
What database
SPS Kansas City: What SharePoint Admin need to know about SQL
SQL Server and SharePoint - Best Practices presented by Steffen Krause, Micro...
NoSql Data Management
What SQL DBAs need to know about SharePoint-Indianapolis 2013
Comparative study of modern databases
SQL server 2016 New Features
NoSql - mayank singh
Sap bods training in hyderabad
Introduction to NOSQL databases
Everything you need to know about SQL Server 2016
Data Modeling for NoSQL
SQL Server 2016 Editions
Gs08 modernize your data platform with sql technologies wash dc
Ad

Similar to Introduction to SharePoint for SQLserver DBAs (20)

PPTX
SharePoint 2010 database maintenance
PPTX
1. SQL Server forSharePoint geeksA gentle introductionThomas Vochten • Septem...
PDF
Boost the Performance of SharePoint Today!
PPTX
How_To_Soup_Up_Your_Farm
PDF
Share point 2010 performance and capacity planning best practices
PPTX
Get your SharePoint spinning with SQL Server
PPTX
What's new in SharePoint 2016
PPTX
Optimize SQL server performance for SharePoint
PPTX
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013
PPTX
SharePoint Saturday St. Louis 2014: What SharePoint Admins need to know about...
PDF
SPSUtah 2014 SharePoint 2013 Performance (Admin)
PPTX
SharePoint Databases: What you need to know (201609)
PDF
SharePoint Saturday San Antonio: SharePoint 2010 Performance
PPTX
ECMDay2015 - Kent Agerlund – Configuration Manager 2012 – A Site Review
PDF
Sharepoint Deployments
PPTX
Building the Perfect SharePoint 2010 Farm - MS Days Bulgaria 2012
PPTX
Sql Server Tuning for SharePoint : what every consultant must know (Office 36...
PPTX
Storing and managing your content in share point spsnyc
PPTX
Best Practices to SharePoint Architecture Fundamentals NZ & AUS
PPTX
SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hy...
SharePoint 2010 database maintenance
1. SQL Server forSharePoint geeksA gentle introductionThomas Vochten • Septem...
Boost the Performance of SharePoint Today!
How_To_Soup_Up_Your_Farm
Share point 2010 performance and capacity planning best practices
Get your SharePoint spinning with SQL Server
What's new in SharePoint 2016
Optimize SQL server performance for SharePoint
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013
SharePoint Saturday St. Louis 2014: What SharePoint Admins need to know about...
SPSUtah 2014 SharePoint 2013 Performance (Admin)
SharePoint Databases: What you need to know (201609)
SharePoint Saturday San Antonio: SharePoint 2010 Performance
ECMDay2015 - Kent Agerlund – Configuration Manager 2012 – A Site Review
Sharepoint Deployments
Building the Perfect SharePoint 2010 Farm - MS Days Bulgaria 2012
Sql Server Tuning for SharePoint : what every consultant must know (Office 36...
Storing and managing your content in share point spsnyc
Best Practices to SharePoint Architecture Fundamentals NZ & AUS
SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hy...
Ad

Recently uploaded (20)

PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
System and Network Administraation Chapter 3
PDF
top salesforce developer skills in 2025.pdf
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPTX
ISO 45001 Occupational Health and Safety Management System
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
ai tools demonstartion for schools and inter college
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
How Creative Agencies Leverage Project Management Software.pdf
PPTX
Online Work Permit System for Fast Permit Processing
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
medical staffing services at VALiNTRY
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
How to Choose the Right IT Partner for Your Business in Malaysia
Upgrade and Innovation Strategies for SAP ERP Customers
System and Network Administraation Chapter 3
top salesforce developer skills in 2025.pdf
Operating system designcfffgfgggggggvggggggggg
Design an Analysis of Algorithms II-SECS-1021-03
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Which alternative to Crystal Reports is best for small or large businesses.pdf
ISO 45001 Occupational Health and Safety Management System
Internet Downloader Manager (IDM) Crack 6.42 Build 41
ai tools demonstartion for schools and inter college
Navsoft: AI-Powered Business Solutions & Custom Software Development
How Creative Agencies Leverage Project Management Software.pdf
Online Work Permit System for Fast Permit Processing
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
ManageIQ - Sprint 268 Review - Slide Deck
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
medical staffing services at VALiNTRY

Introduction to SharePoint for SQLserver DBAs

  • 1. Intro to SharePoint for SQL Server DBA’s Steve Knutson | Microsoft MVP Office Servers and Services Stratos Technology Partners Managing Director #614 SQL Saturday South Island
  • 2. Who am I? steve@stp.co.nz | @nztechtweet
  • 3. Agenda • A bit about SharePoint Architecture • SharePoint Databases • How big, how many and how fast? • Backup Recovery • Maintenance do’s and don’ts • If you only remember a few things
  • 4. SharePoint Architecture 101 SharePoint Server (Web and App roles) SQL Server Services ContentConfig Suitable for: • Dev and UAT • Small Farms
  • 5. Or this… SharePoint Server (App roles) SQL Server Services ContentConfig SharePoint Server (Web roles)
  • 6. Or this! SharePoint Server (App roles) SQL Server (cluster) Services ContentConfig SharePoint Server (Web roles) SharePoint Server (App roles) SharePoint Server (Web roles)
  • 7. What are all these databases for? SharePoint has databases for three purposes • Farm configuration – contains the configuration of the entire SharePoint farm • Service Applications – configuration and data for SharePoint application services e.g. Search, User Profile, Managed Metadata etc • Content databases – contains user data e.g. site configuration and data
  • 8. A transaction is a document SharePoint workloads are different in several ways • Content databases can contain documents. An “HTTP Get” from SharePoint can return a document (they can be big!) • Read to Write ratios can vary – rule of thumb 80% read, 20% write • A ‘Full’ Search Crawl will read every item and document in the Content Databases, generating high I/O in SQL.
  • 9. Temp DB • Put on the fastest storage • Use a dedicated LUN if possible • Use “MB” rather than “%” auto-grow • TempDB size = [MAX DB SIZE (KB)] X [0.25] / [No. CORES] = DATA FILE SIZE (KB)
  • 10. Capacity Planning • Soft limits (there are no hard limits) • 50,000 site collections per content db • 1TB per content db (but smaller is recommended) • 8 Web Front Ends per SQL server • Understand the size and growth profile of content • Versioning requirements • High growth vs archival • Access frequency • 80% Read, 20% write
  • 11. SQL Server Memory, Disk and Network • RAM – Minimum 4GB (Dev), Good 8-16GB, Better >16GB • CPU cache - >2MB L2 Cache • CPU cores – Good 4 cores, Better >4 cores • Disk latency – Good < 10msec, Better <10msec (Data) <5msec (Tlog) • Network latency (SQL to SP server) – Less than 1ms
  • 12. SQL and SharePoint Server Config • Keep up to date with patches but confirm SP supported version • Use a dedicated SQL server if possible • Plan your content databases and “scale out” if necessary • Use SQL Aliases
  • 13. Content Databases • Using dedicated content databases per site collection allows you to recover individual site collections and other management flexibility • This is important for recovery and DR
  • 14. Remote BLOB Storage • Has some limitations • No encryption or compression • Best for… • Few large BLOBs (mostly read access) • Worst for… • Lots of smaller BLOBs (or intensive write access) • Requires Enterprise licensing • Third-party add-ons make this much better • Adds complexity
  • 15. Business Data Connectivity • Can present SQL views / tables in SharePoint • Can write data back into SQL SharePoint also supports oData and REST • Use SSIS to pull data from lists (on-premises & cloud)
  • 16. Access Services • Access databases published to SharePoint • Uses SQL to host tables NOT Access • NB: Access Services is end of life for SharePoint Online
  • 17. Business Intelligence Services (on-premises) • PowerPivot • PerformancePoint • SQL Server Reporting Services Cloud • PowerBI (Pro license)
  • 18. Secure Store • Manages credentials for BI Services • Works with Microsoft and non-Microsoft data sources • Authentication: • Pass-through (logged in user) • Data access account • Non-windows accounts • Reduces need for Kerberos (but isn't a complete replacement)
  • 19. Which Recovery model? Microsoft recommend using both the Simple and Full recovery models. Full Model for these databases • Configuration, Admin Content, Content, Secure Store, BDC and PerformancePoint Simple Model for these databases: • Search and User Profile Service
  • 20. Backup and Restore • Understand what you might need to recover • Library, List, File or list item • Site • Site Collection • Web application • Farm • Use the recycle bins first • Unattached database recovery • Get sign-off on your RTO and RPO’s, don’t assume they are the same as other systems
  • 21. Maintenance Indexes - Fragments happen! (who said by design?) • Performance degrades as fragmentation increases – more I/O • Content and Search DB’s are most susceptible • Use sys.dm_db_index_physical_stats, it is more accurate that DBCC Showconfig
  • 22. Maintenance Do’s • Auto-defrag (Content Databases only) • Shrink content db’s (but not other database types) • Update statistics • Change the server wide fill factor to 70% • Use DBCC CheckDB to check for consistency errors • Check that your backups are working • Do maintenance during off-peak hours
  • 23. Maintenance Don’ts • Use maintenance plans to shrink databases • Drop and recreate indexes! (definitely don’t do this…) • Shrink any databases other than Content DB’s • Auto-shrink databases • Run maintenance tasks like DBCC or index rebuilds during business hours • Directly update SharePoint databases!!!
  • 24. Know your environment SharePoint is a platform with a great deal of flexibility and wide range of uses. Your environment will be unique, so take time to understand normal: • Setup performance counters • Monitor your environment doing Search Crawls • Be proactive about database growth • Prepare for bulk data migrations • Practice recovery scenarios
  • 25. If you only remember a few things • Always use a SQL Alias for SharePoint • Use multiple content databases if you have lots of data (plan for scale) • You can scale out or scale up • Capacity Planning is important • Measure “YOUR” environment • Understand “YOUR” recovery options
  • 26. Q & A time
  • 27. SQL SATURDAY | #614 | South Island 2017 Steve Knutson | Microsoft MVP Please fill out your evaluation forms. You have them in your A4 pack from registration. Please put them in the box at the front of the room. There are spot prizes for completed evaluation forms.
  • 28. SQL SATURDAY | #614 | South Island 2017 Steve Knutson | Microsoft MVP Please fill out your evaluation forms. You have them in your A4 pack from registration. Please put them in the box at the front of the room. There are spot prizes for completed evaluation forms.
  • 29. Thank you to our sponsors: Gold Sponsors Silver Sponsors Bronze Sponsors