SlideShare a Scribd company logo
What SQL DBA’s need to
know about SharePoint
Presented by:
JD Wade, Lead SharePoint Consultant
Horizons Consulting
Mail: jd.wade@hrizns.com
Blog: http://wadingthrough.com
LinkedIn: http://linkedin.com/in/jdwade
Twitter: @JDWade
Agenda
• SharePoint Primer
• Before Turning It Over
• Helping Out the SharePoint Admin & Yourself
• Performance Considerations
• Availability and Disaster Recovery
SharePoint
Database
Schema
SharePoint
Primer
Single Business Productivity Platform leading to
common:
- End-user Experience
- Rich Integrated Capabilities
- Toolset and Development
- Deployment and Management
Users
TeamsCorporate Departments
Empowerment
Knowledge
Management
Portal
Regulatory
Compliance
Repository
Corporate
Web
Presence
Sales
Division
Portal
Custom
SAP
Front-End
Team “ABC”
Site
Project
“X” Site
Weekly
Issue
Tracking
Meeting
Business
Intelligence
Dashboard
R&D
Community
Geneva
Office
Site
Employee
Portal
Extranet
Collab
Site
Config
Content Service
Application
3rd Party
BI
What SQL DBA's need to know about SharePoint
Before Turning
It Over
10GB 1TB
1,000 users 10,000 users
<10GB 10GB-1TB 1-2TB
5-16TB2-5TB
>64GB64GB
32GB16GB8GB
SharePoint/Database
Client/Public
HOSTS
Use Multiple Networks (Client versus Backend)
Use 64KB allocation units
25% Free Space
SQLIO
Improves Database File Size Changes
Use these two settings together
MS KB 2659143
SQL Enterprise Options Usable by SharePoint
•Online Index Rebuild
• AlwaysOn Availability Groups
• Transparent Data Encryption
• Table Partitioning (SharePoint 2010)
• Snapshots
• Remote BLOB Storage
• Resource Governor
• PowerPivot for SharePoint
• HA for SP integrated SSRS
What SQL DBA's need to know about SharePoint
SQL Server Instance Settings
TempDB
Content
16GB
TempDB
Log
1GB
TempDB
Data
1GB
TempDB
Data
1GB
TempDB
Data
1GB
TempDB
Data
1GB
4GB
1 SQL per 4 Web Servers
DNS CNAMES
Aliases
SQL Aliases
Prod_ConfigDB
Prod_ContentDB_Portal
Prod_ContentDB_WebSite
Prod_ServApp_ManagedMetadata
Prod_ServApp_SearchAdmin
Prod_App_NintexWorkflow
Use a naming standard
http://autospinstaller.codeplex.com
http://autospinstallergui.codeplex.com
What SQL DBA's need to know about SharePoint
Model database ignored
Autogrowth is insurance only
Check recovery model
Helping Out
the SharePoint
Admin &
Yourself
SC
SC SC
SC
Content Database
SC
SC SC
SC
Content Database
Typical Content Database
SC
Content Database
100GB
Likes to run solo
SC
Content Database
200GB
Any bigger and needs to be on a diet
SC
Content Database
2TB
All Usage Scenarios
SC
Content Database
16TB
Hard Limit
SC
SC SC
SC
Content Database
SC
SC SC
SC
Content Database
Site Quotas Max Site Coll./DB
Shredded Storage
Indexes
Statistics
DBCC CHECKDB ALTER AUTHORIZATION
Shrink database = BAD Use Backup Compression
What SQL DBA's need to know about SharePoint
Index Columns
Make multiple views
Performance
Considerations
Data: 20 ms
Logs: 20 ms
Data: 10 ms
Logs: 10 ms
Data: 10 ms
Logs: 5 ms
Disk Latency Requirements
TempDB Data Logs
Use Separate Drive
Primary Filegroup
Data Data Data
Content Database
Data
Standard Environment
TempDB
Tran Logs
Search
Data File
Content
Data File
Read (Archive) Environment
TempDB
Tran Logs
Search
Data File
Content
Data File
The BLOB
Native Remote BLOB Storage
Third-Party Remote BLOB Storage
High Availability
Disaster Recovery
•Clustering
•Synchronous Mirroring (SharePoint is mirror aware)
•Synchronous AlwaysOn AG
•Asynchronous Mirroring (some database types only)
•Asynchronous AlwaysOn AG (some database types only)
•Log Shipping (some database types only)
Q & A
http://wadinghthrough.com/presentations
http://www.hrizns.com
http://twitter.com/jdwade
Notes
• Why are database changes not supported?
• Single data platform for all workloads
• Change for one may adversely affect another
• Upgrade and Servicing expects solid DB contract
• App logic is heavily dependent on DB specifics
• App enforces constraints and integrity!
• http://support.microsoft.com/kb/841057
• SharePoint manages its own name value pair (NVP)
indexes
• There are four types of databases in a SharePoint farm
• Config
• Content
• Service Application
• Third-party/BI applications
• Over 20 databases in a standard SharePoint farm
installation
• Database types and descriptions
http://technet.microsoft.com/en-us/library/cc678868.aspx
SharePoint Primer
• SharePoint can use some functionality of Enterprise
Edition
• Online Index Rebuild
• AlwaysOn Availability Groups (SQL 2012)
• Transparent Data Encryption
• Table Partitioning (SharePoint 2010)
• Snapshots
• Content Deployment
• Backup
• Remote BLOB Storage
• Resource Governor
• PowerPivot for SharePoint
• HA for SharePoint integrated Reporting Services
Server Setup
• Format database and log drives with 64KB allocation
units. Up to 30% performance improvement especially for
backup and restore. Discuss pages and extents
•NTFS drives should always have 25% free space
• Heavy TempDB consumer, always do the following
• Split data files into one file for each core on server
• Total TempDB size should be 25% of the largest
content database
• Equally distribute space to each data file
• Log files should be 25% of total database size
• Set AutoGrowth to fixed amount
Server Setup
• If SharePoint farm is Production or Tier 1, use lock pages
in memory. If virtual and not critical, you can leave off lock
pages to get greater density on the host.
• If using lock pages, set maximum memory
• JD’s rule of thumb is leave 2GB available to OS and other
apps for Dev/Test. But formula to really use is
Server Setup
• Ensure SQL service account has Perform Volume
Maintenance rights
• Set MAXDOP to 1
• SharePoint should be in its own instance
• Set Fill Factor to 80
• Set at Instance level, not at database
• Memory guidelines
• Up to about 10GB of content: 8 GB
• 10GB – 1TB: 16 GB
• 1TB – 2TB: 32 GB
• 2TB – 5TB: 64 GB
• Above 5TB: over 64GB can improve caching speed
Server Setup
• Server core minimum requirements
• Up to 10GB content or below 1,000 users: 4 cores
• Up to 1TB content or up to 10,000 users: 8 cores
• Work with SharePoint Admins to create a database
naming scheme. Here are some examples:
• Prod_ConfigDB
• Prod_ContentDB_Portal
• Prod_ContentDB_WebSite
• Prod_ServApp_ManagedMetadata
• Prod_App_NintexWorkflow
• Manually deploy service apps, use AutoSPInstaller or
pre-create databases to get rid of GUIDs in database
names
• http://technet.microsoft.com/en-us/library/cc262869(v=office.14).aspx
Server Setup
• Recommend the SharePoint Admin use SQL aliases.
DNS CNAMES are OK. But with an alias, you can specify
the port number which improves performance and they are
usually easier to change.
• Recommended to use dual networks on SharePoint
servers. One NIC is client facing and other NIC is database
facing.
• If more than four web servers, use a second SQL server.
SharePoint loves connections.
Server Setup
• SharePoint ignores the model database. Either manage
manually or setup scripted maintenance plan for
autogrowth settings. Set autogrow to a fixed size, not
percentage. Set fixed size based on expected total
database size.
• Don’t rely on autogrow, Work with SP admins to pre-grow
for expected use. Size databases appropriately
• Autogrow should be just the insurance policy. Work with
SharePoint administrator to appropriately size content
databases
• They can limit site collection size by using a “site
quota”
• They can limit the number of site collections in a
content databases using the “Maximum Site”
settings on the content database.
• Don’t forget about recycle bins (SC, site, and inside
SC)
Database Management
•Site collections about 100GB should be in a content
database by themselves. SharePoint Admins can move
site collections to different databases.
• Main purpose is for backup and recovery.
•In general, for normal general collaboration usage of
SharePoint, site collections should not exceed 200GB (soft
limit)
•Good database sizing article:
http://technet.microsoft.com/en-us/library/cc298801.aspx
• Remote BLOB storage does NOT change sizing
guidelines
Database Management
• Database size support limits
• General Usage Scenarios: 200GB
• All Usage Scenarios: 2TB
• Disk subsystem should provide 0.25-2 IOPS
per GB
• Plans developed for HA, DR, capacity, and
performance
• Backup and Restore testing
• Document Archive Scenario: No limit
• Above requirements
• Less than 5% of content accessed/month
• Less than 1% of content modified/month
•16TB is SharePoint’s limit for a content database because
it can only use one filegroup
Database Management
• Use SQLIO to test storage prior to deployment
• http://www.microsoft.com/en-us/download/details.aspx?id=20163
• http://support.microsoft.com/kb/231619
• Do NOT enable auto-create statistics. Leave it alone.
SharePoint sets it as needed. Can change execution plans
from one SQL server to another. SharePoint provides
coded hints for queries as needed.
•SharePoint 2013 has a new feature called Shredded
Storage. Only saves deltas. 30-40% reduction of space
used for versioning.
• Check Recovery Model meets your requirements. Some
are set to Full and others to Simple by default.
• Recommend the configuration database be set to
Simple.
• ConfigDB can only be restored if the SharePoint
farm was offline when backed up.
Database Management
• Ideally, TempDB, Database and Transaction Logs should
all be on separate drives.
• For content database performance improvement, you can
use multiple data files
• Only create files in the primary filegroup
• Put each data file on separate drive
• Number of files should equal number of cores
• Not supported for other databases
•Disk Latency Requirements
• Low: 20 ms
• Middle: 10 ms
• High: 10 ms for data, 5 ms for logs
Operations and
Performance
•If performance improvements are needed for databases,
in a standard environments, this is the order of priority
• TempDB data and logs files
• Database transaction logs
• Search data files
• Content database data files
•For primary read (archive) environments, the order is
• TempDB data and logs files
• Search data files
• Content database data files
• Database transaction logs
Operations and
Performance
• SharePoint manages index fragmentation normally
through SharePoint Health Analyzer rules. See white paper
in References for best discussion of index fragmentation.
Some databases are not monitored or sometimes manual
intervention is needed.
• Schedule regular DBCC checks
• DBCC repair with data loss is NOT supported
•Maintain farm account as DBO for moves/restores
• Normally, don’t shrink databases except when bulk
changes have been made
•So here is what you need to chat with your SharePoint
admin about never changing
• Changing certain SharePoint thresholds will start
SQL doing table locks rather than row locks.
• Use indexed columns instead
Operations and
Performance
• Supported options for HA and DR in SharePoint
• Clustering
• Synchronous Mirroring (SharePoint is mirror aware)
• Synchronous AlwaysOn AG
• Asynchronous Mirroring
(some database types only)
• Asynchronous AlwaysOn AG
(some database types only)
• Log Shipping (some database types only)
• Supported HA/DR options for SP databases
http://technet.microsoft.com/en-us/library/jj841106.aspx
• SharePoint does not support the use of SQL transactional
replication or merge replication
Availability and
Disaster Recovery
•When evaluating HA/DR options, remember
• Web server to database response time must be
less than 1ms
• Network needs to support 1 gigabyte per second
bandwidth
Availability and
Disaster Recovery
• Remote BLOB storage
• Does not change storage limits
• Requires SQL Enterprise
• Helps to lower costs because cheaper storage can be
used to store large, read intensive BLOBs
• Uses either filestream or third-party provider
• Microsoft filestream provider does not support
• Encryption of BLOBs
• Using data compression
• Use when you many large BLOBs (over 256KB) for read-
intensive or read-only access.
• Savings on lower cost storage should outweigh increased
IT operations complexity
• Third party options have much more flexibility and can
allow BLOBs greater than 2TB but at a cost
• 20ms response time for first byte requirement
Availability and
Disaster Recovery

More Related Content

What's hot (20)

PPTX
SharePoint Saturday St. Louis 2014: What SharePoint Admins need to know about...
J.D. Wade
 
PPTX
Infrastructure Best Practices for SharePoint On-Premises presented by Michael...
European SharePoint Conference
 
PDF
SQL Server and SharePoint - Best Practices presented by Steffen Krause, Micro...
European SharePoint Conference
 
PPTX
Plan, prepare & overall process of upgrade and migrate to SharePoint 2013
Kashish Sukhija
 
PDF
Introduction to SharePoint for SQLserver DBAs
Steve Knutson
 
PPTX
SharePoint Databases: What you need to know (201504)
Alan Eardley
 
PPTX
SharePoint Saturday Kansas City - SharePoint 2013's Dirty Little Secrets
J.D. Wade
 
PPTX
Ultimate SharePoint 2013 Infrastructure Best Practices Session - SPKSLO 2012
Michael Noel
 
PDF
Boost the Performance of SharePoint Today!
Brian Culver
 
PPT
SharePoint Microsoft IT - Swiss Presentation with Joel and Andre
Joel Oleson
 
PDF
Migrate SharePoint 2016 To SharePoint 2019 Environment Using Content Database...
Softree Technology Pvt. Ltd
 
PDF
SQL Server 2016 Everything built-in FULL deck
Hamid J. Fard
 
PPTX
Sql Server Tuning for SharePoint : what every consultant must know (Office 36...
serge luca
 
PPTX
SQL server 2016 New Features
Amin Mesbahi
 
PPTX
SharePoint and Large Scale SQL Deployments - NZSPC
guest7c2e070
 
PPTX
How to Monitor Postgres Like a Pro!
EDB
 
PDF
DBaaS with EDB Postgres on AWS
EDB
 
PDF
Share point 2013 migration solutions
Peter Ganev
 
PPTX
SharePoint Performance: Best Practices from the Field
Jason Himmelstein
 
PDF
SQL Server 2016 Editions
Onomi
 
SharePoint Saturday St. Louis 2014: What SharePoint Admins need to know about...
J.D. Wade
 
Infrastructure Best Practices for SharePoint On-Premises presented by Michael...
European SharePoint Conference
 
SQL Server and SharePoint - Best Practices presented by Steffen Krause, Micro...
European SharePoint Conference
 
Plan, prepare & overall process of upgrade and migrate to SharePoint 2013
Kashish Sukhija
 
Introduction to SharePoint for SQLserver DBAs
Steve Knutson
 
SharePoint Databases: What you need to know (201504)
Alan Eardley
 
SharePoint Saturday Kansas City - SharePoint 2013's Dirty Little Secrets
J.D. Wade
 
Ultimate SharePoint 2013 Infrastructure Best Practices Session - SPKSLO 2012
Michael Noel
 
Boost the Performance of SharePoint Today!
Brian Culver
 
SharePoint Microsoft IT - Swiss Presentation with Joel and Andre
Joel Oleson
 
Migrate SharePoint 2016 To SharePoint 2019 Environment Using Content Database...
Softree Technology Pvt. Ltd
 
SQL Server 2016 Everything built-in FULL deck
Hamid J. Fard
 
Sql Server Tuning for SharePoint : what every consultant must know (Office 36...
serge luca
 
SQL server 2016 New Features
Amin Mesbahi
 
SharePoint and Large Scale SQL Deployments - NZSPC
guest7c2e070
 
How to Monitor Postgres Like a Pro!
EDB
 
DBaaS with EDB Postgres on AWS
EDB
 
Share point 2013 migration solutions
Peter Ganev
 
SharePoint Performance: Best Practices from the Field
Jason Himmelstein
 
SQL Server 2016 Editions
Onomi
 

Similar to What SQL DBA's need to know about SharePoint (20)

PPTX
How_To_Soup_Up_Your_Farm
Nigel Price
 
PPTX
SharePoint 2010 database maintenance
Matt Ranlett
 
PPTX
Datapolis Guest Expert Presentation: Top 15 SharePoint Server Configuration M...
Datapolis
 
PDF
SharePoint 2016 Upgrade Planning
Chandima Kulathilake
 
PDF
SAP #BOBJ #BI 4.1 Upgrade Webcast Series 3: BI 4.1 Sizing and Virtualization
SAP Analytics
 
PDF
SharePoint Saturday San Antonio: SharePoint 2010 Performance
Brian Culver
 
PDF
SPSUtah 2014 SharePoint 2013 Performance (Admin)
Brian Culver
 
PPTX
Real world business workflow with SharePoint designer 2013
Ivan Sanders
 
PPTX
SharePoint 2013 Performance Analysis - Robi Vončina
SPC Adriatics
 
PPTX
SharePoint Databases: What you need to know (201512)
Alan Eardley
 
PPSX
SharePoint Development Workshop
MJ Ferdous
 
PDF
SharePoint Saturday The Conference 2011 - SP2010 Performance
Brian Culver
 
PPTX
Pascal benois performance_troubleshooting-spsbe18
BIWUG
 
PPTX
Optimize SQL server performance for SharePoint
serge luca
 
PPTX
What's new in SharePoint 2016
Giuseppe Marchi
 
PPTX
SharePoint Databases: What you need to know (201609)
Alan Eardley
 
PPTX
SharePoint Databases: What you need to know (201509)
Alan Eardley
 
PPTX
SharePoint Intelligence Real World Business Workflow With Share Point Designe...
Ivan Sanders
 
PPTX
Oracle business analytics best practices
Nitai Partners Inc
 
PPTX
1. SQL Server forSharePoint geeksA gentle introductionThomas Vochten • Septem...
BIWUG
 
How_To_Soup_Up_Your_Farm
Nigel Price
 
SharePoint 2010 database maintenance
Matt Ranlett
 
Datapolis Guest Expert Presentation: Top 15 SharePoint Server Configuration M...
Datapolis
 
SharePoint 2016 Upgrade Planning
Chandima Kulathilake
 
SAP #BOBJ #BI 4.1 Upgrade Webcast Series 3: BI 4.1 Sizing and Virtualization
SAP Analytics
 
SharePoint Saturday San Antonio: SharePoint 2010 Performance
Brian Culver
 
SPSUtah 2014 SharePoint 2013 Performance (Admin)
Brian Culver
 
Real world business workflow with SharePoint designer 2013
Ivan Sanders
 
SharePoint 2013 Performance Analysis - Robi Vončina
SPC Adriatics
 
SharePoint Databases: What you need to know (201512)
Alan Eardley
 
SharePoint Development Workshop
MJ Ferdous
 
SharePoint Saturday The Conference 2011 - SP2010 Performance
Brian Culver
 
Pascal benois performance_troubleshooting-spsbe18
BIWUG
 
Optimize SQL server performance for SharePoint
serge luca
 
What's new in SharePoint 2016
Giuseppe Marchi
 
SharePoint Databases: What you need to know (201609)
Alan Eardley
 
SharePoint Databases: What you need to know (201509)
Alan Eardley
 
SharePoint Intelligence Real World Business Workflow With Share Point Designe...
Ivan Sanders
 
Oracle business analytics best practices
Nitai Partners Inc
 
1. SQL Server forSharePoint geeksA gentle introductionThomas Vochten • Septem...
BIWUG
 
Ad

More from J.D. Wade (18)

PPTX
Cloud Security Fundamentals - St. Louis O365 Users Group
J.D. Wade
 
PPTX
Kerberos Survival Guide: SharePointalooza
J.D. Wade
 
PPTX
Kerberos Survival Guide: Columbus 2015
J.D. Wade
 
PPTX
Kerberos Survival Guide: SharePoint Saturday Nashville 2015
J.D. Wade
 
PPTX
Kerberos survival guide-STL 2015
J.D. Wade
 
PPT
SPS St. Louis: SharePoint 2013 upgrades: Notes from the Field
J.D. Wade
 
PPTX
SharePoint Saturday Kansas City - Kerberos Survival Guide
J.D. Wade
 
PPT
Horizons' Event: SharePoint 2013 upgrades-Notes from the Field
J.D. Wade
 
PPTX
SPS Ozarks 2012: Kerberos Survival Guide
J.D. Wade
 
PPTX
Kerberos survival guide SPS Kansas City
J.D. Wade
 
PPTX
Kerberos Survival Guide SPS Chicago
J.D. Wade
 
PDF
Kerberos Survival Guide - St. Louis Day of .Net
J.D. Wade
 
PDF
Kerberos survival guide
J.D. Wade
 
PPTX
Kerberos survival guide - SPS Ozarks 2010
J.D. Wade
 
PPT
SharePoint 2010: Insights into BI
J.D. Wade
 
PPTX
SharePoint 2010 IT Pro Overview
J.D. Wade
 
PPT
SharePoint 2010: Insights into BI
J.D. Wade
 
PPTX
Internet And Facebook Safety
J.D. Wade
 
Cloud Security Fundamentals - St. Louis O365 Users Group
J.D. Wade
 
Kerberos Survival Guide: SharePointalooza
J.D. Wade
 
Kerberos Survival Guide: Columbus 2015
J.D. Wade
 
Kerberos Survival Guide: SharePoint Saturday Nashville 2015
J.D. Wade
 
Kerberos survival guide-STL 2015
J.D. Wade
 
SPS St. Louis: SharePoint 2013 upgrades: Notes from the Field
J.D. Wade
 
SharePoint Saturday Kansas City - Kerberos Survival Guide
J.D. Wade
 
Horizons' Event: SharePoint 2013 upgrades-Notes from the Field
J.D. Wade
 
SPS Ozarks 2012: Kerberos Survival Guide
J.D. Wade
 
Kerberos survival guide SPS Kansas City
J.D. Wade
 
Kerberos Survival Guide SPS Chicago
J.D. Wade
 
Kerberos Survival Guide - St. Louis Day of .Net
J.D. Wade
 
Kerberos survival guide
J.D. Wade
 
Kerberos survival guide - SPS Ozarks 2010
J.D. Wade
 
SharePoint 2010: Insights into BI
J.D. Wade
 
SharePoint 2010 IT Pro Overview
J.D. Wade
 
SharePoint 2010: Insights into BI
J.D. Wade
 
Internet And Facebook Safety
J.D. Wade
 
Ad

Recently uploaded (20)

PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
Advancing WebDriver BiDi support in WebKit
Igalia
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Biography of Daniel Podor.pdf
Daniel Podor
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Advancing WebDriver BiDi support in WebKit
Igalia
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 

What SQL DBA's need to know about SharePoint

  • 1. What SQL DBA’s need to know about SharePoint Presented by: JD Wade, Lead SharePoint Consultant Horizons Consulting Mail: [email protected] Blog: http://wadingthrough.com LinkedIn: http://linkedin.com/in/jdwade Twitter: @JDWade
  • 2. Agenda • SharePoint Primer • Before Turning It Over • Helping Out the SharePoint Admin & Yourself • Performance Considerations • Availability and Disaster Recovery
  • 5. Single Business Productivity Platform leading to common: - End-user Experience - Rich Integrated Capabilities - Toolset and Development - Deployment and Management Users TeamsCorporate Departments Empowerment Knowledge Management Portal Regulatory Compliance Repository Corporate Web Presence Sales Division Portal Custom SAP Front-End Team “ABC” Site Project “X” Site Weekly Issue Tracking Meeting Business Intelligence Dashboard R&D Community Geneva Office Site Employee Portal Extranet Collab Site
  • 9. 10GB 1TB 1,000 users 10,000 users
  • 12. Use 64KB allocation units 25% Free Space
  • 13. SQLIO
  • 14. Improves Database File Size Changes Use these two settings together
  • 16. SQL Enterprise Options Usable by SharePoint •Online Index Rebuild • AlwaysOn Availability Groups • Transparent Data Encryption • Table Partitioning (SharePoint 2010) • Snapshots • Remote BLOB Storage • Resource Governor • PowerPivot for SharePoint • HA for SP integrated SSRS
  • 21. 1 SQL per 4 Web Servers
  • 26. Model database ignored Autogrowth is insurance only Check recovery model
  • 31. SC Content Database 200GB Any bigger and needs to be on a diet
  • 34. SC SC SC SC Content Database SC SC SC SC Content Database Site Quotas Max Site Coll./DB
  • 37. DBCC CHECKDB ALTER AUTHORIZATION Shrink database = BAD Use Backup Compression
  • 41. Data: 20 ms Logs: 20 ms Data: 10 ms Logs: 10 ms Data: 10 ms Logs: 5 ms Disk Latency Requirements
  • 42. TempDB Data Logs Use Separate Drive
  • 43. Primary Filegroup Data Data Data Content Database Data
  • 45. Read (Archive) Environment TempDB Tran Logs Search Data File Content Data File
  • 49. High Availability Disaster Recovery •Clustering •Synchronous Mirroring (SharePoint is mirror aware) •Synchronous AlwaysOn AG •Asynchronous Mirroring (some database types only) •Asynchronous AlwaysOn AG (some database types only) •Log Shipping (some database types only)
  • 51. Notes
  • 52. • Why are database changes not supported? • Single data platform for all workloads • Change for one may adversely affect another • Upgrade and Servicing expects solid DB contract • App logic is heavily dependent on DB specifics • App enforces constraints and integrity! • http://support.microsoft.com/kb/841057 • SharePoint manages its own name value pair (NVP) indexes • There are four types of databases in a SharePoint farm • Config • Content • Service Application • Third-party/BI applications • Over 20 databases in a standard SharePoint farm installation • Database types and descriptions http://technet.microsoft.com/en-us/library/cc678868.aspx SharePoint Primer
  • 53. • SharePoint can use some functionality of Enterprise Edition • Online Index Rebuild • AlwaysOn Availability Groups (SQL 2012) • Transparent Data Encryption • Table Partitioning (SharePoint 2010) • Snapshots • Content Deployment • Backup • Remote BLOB Storage • Resource Governor • PowerPivot for SharePoint • HA for SharePoint integrated Reporting Services Server Setup
  • 54. • Format database and log drives with 64KB allocation units. Up to 30% performance improvement especially for backup and restore. Discuss pages and extents •NTFS drives should always have 25% free space • Heavy TempDB consumer, always do the following • Split data files into one file for each core on server • Total TempDB size should be 25% of the largest content database • Equally distribute space to each data file • Log files should be 25% of total database size • Set AutoGrowth to fixed amount Server Setup
  • 55. • If SharePoint farm is Production or Tier 1, use lock pages in memory. If virtual and not critical, you can leave off lock pages to get greater density on the host. • If using lock pages, set maximum memory • JD’s rule of thumb is leave 2GB available to OS and other apps for Dev/Test. But formula to really use is Server Setup
  • 56. • Ensure SQL service account has Perform Volume Maintenance rights • Set MAXDOP to 1 • SharePoint should be in its own instance • Set Fill Factor to 80 • Set at Instance level, not at database • Memory guidelines • Up to about 10GB of content: 8 GB • 10GB – 1TB: 16 GB • 1TB – 2TB: 32 GB • 2TB – 5TB: 64 GB • Above 5TB: over 64GB can improve caching speed Server Setup
  • 57. • Server core minimum requirements • Up to 10GB content or below 1,000 users: 4 cores • Up to 1TB content or up to 10,000 users: 8 cores • Work with SharePoint Admins to create a database naming scheme. Here are some examples: • Prod_ConfigDB • Prod_ContentDB_Portal • Prod_ContentDB_WebSite • Prod_ServApp_ManagedMetadata • Prod_App_NintexWorkflow • Manually deploy service apps, use AutoSPInstaller or pre-create databases to get rid of GUIDs in database names • http://technet.microsoft.com/en-us/library/cc262869(v=office.14).aspx Server Setup
  • 58. • Recommend the SharePoint Admin use SQL aliases. DNS CNAMES are OK. But with an alias, you can specify the port number which improves performance and they are usually easier to change. • Recommended to use dual networks on SharePoint servers. One NIC is client facing and other NIC is database facing. • If more than four web servers, use a second SQL server. SharePoint loves connections. Server Setup
  • 59. • SharePoint ignores the model database. Either manage manually or setup scripted maintenance plan for autogrowth settings. Set autogrow to a fixed size, not percentage. Set fixed size based on expected total database size. • Don’t rely on autogrow, Work with SP admins to pre-grow for expected use. Size databases appropriately • Autogrow should be just the insurance policy. Work with SharePoint administrator to appropriately size content databases • They can limit site collection size by using a “site quota” • They can limit the number of site collections in a content databases using the “Maximum Site” settings on the content database. • Don’t forget about recycle bins (SC, site, and inside SC) Database Management
  • 60. •Site collections about 100GB should be in a content database by themselves. SharePoint Admins can move site collections to different databases. • Main purpose is for backup and recovery. •In general, for normal general collaboration usage of SharePoint, site collections should not exceed 200GB (soft limit) •Good database sizing article: http://technet.microsoft.com/en-us/library/cc298801.aspx • Remote BLOB storage does NOT change sizing guidelines Database Management
  • 61. • Database size support limits • General Usage Scenarios: 200GB • All Usage Scenarios: 2TB • Disk subsystem should provide 0.25-2 IOPS per GB • Plans developed for HA, DR, capacity, and performance • Backup and Restore testing • Document Archive Scenario: No limit • Above requirements • Less than 5% of content accessed/month • Less than 1% of content modified/month •16TB is SharePoint’s limit for a content database because it can only use one filegroup Database Management
  • 62. • Use SQLIO to test storage prior to deployment • http://www.microsoft.com/en-us/download/details.aspx?id=20163 • http://support.microsoft.com/kb/231619 • Do NOT enable auto-create statistics. Leave it alone. SharePoint sets it as needed. Can change execution plans from one SQL server to another. SharePoint provides coded hints for queries as needed. •SharePoint 2013 has a new feature called Shredded Storage. Only saves deltas. 30-40% reduction of space used for versioning. • Check Recovery Model meets your requirements. Some are set to Full and others to Simple by default. • Recommend the configuration database be set to Simple. • ConfigDB can only be restored if the SharePoint farm was offline when backed up. Database Management
  • 63. • Ideally, TempDB, Database and Transaction Logs should all be on separate drives. • For content database performance improvement, you can use multiple data files • Only create files in the primary filegroup • Put each data file on separate drive • Number of files should equal number of cores • Not supported for other databases •Disk Latency Requirements • Low: 20 ms • Middle: 10 ms • High: 10 ms for data, 5 ms for logs Operations and Performance
  • 64. •If performance improvements are needed for databases, in a standard environments, this is the order of priority • TempDB data and logs files • Database transaction logs • Search data files • Content database data files •For primary read (archive) environments, the order is • TempDB data and logs files • Search data files • Content database data files • Database transaction logs Operations and Performance
  • 65. • SharePoint manages index fragmentation normally through SharePoint Health Analyzer rules. See white paper in References for best discussion of index fragmentation. Some databases are not monitored or sometimes manual intervention is needed. • Schedule regular DBCC checks • DBCC repair with data loss is NOT supported •Maintain farm account as DBO for moves/restores • Normally, don’t shrink databases except when bulk changes have been made •So here is what you need to chat with your SharePoint admin about never changing • Changing certain SharePoint thresholds will start SQL doing table locks rather than row locks. • Use indexed columns instead Operations and Performance
  • 66. • Supported options for HA and DR in SharePoint • Clustering • Synchronous Mirroring (SharePoint is mirror aware) • Synchronous AlwaysOn AG • Asynchronous Mirroring (some database types only) • Asynchronous AlwaysOn AG (some database types only) • Log Shipping (some database types only) • Supported HA/DR options for SP databases http://technet.microsoft.com/en-us/library/jj841106.aspx • SharePoint does not support the use of SQL transactional replication or merge replication Availability and Disaster Recovery
  • 67. •When evaluating HA/DR options, remember • Web server to database response time must be less than 1ms • Network needs to support 1 gigabyte per second bandwidth Availability and Disaster Recovery
  • 68. • Remote BLOB storage • Does not change storage limits • Requires SQL Enterprise • Helps to lower costs because cheaper storage can be used to store large, read intensive BLOBs • Uses either filestream or third-party provider • Microsoft filestream provider does not support • Encryption of BLOBs • Using data compression • Use when you many large BLOBs (over 256KB) for read- intensive or read-only access. • Savings on lower cost storage should outweigh increased IT operations complexity • Third party options have much more flexibility and can allow BLOBs greater than 2TB but at a cost • 20ms response time for first byte requirement Availability and Disaster Recovery