spca2014 thvo sql pub vochten

Post on 02-Jul-2015

207 Views

Category:

Documents

2 Downloads

Preview:

Click to see full reader

TRANSCRIPT

SQL Server for SharePoint Professionals

Thomas Vochten

November 18, 2014 | SharePoint Connect

Amsterdam

About Me

Thomas Vochten

SharePoint MVP. Platform architect. Speaker. Trainer. Involuntary DBA. Consultant at Xylos. V-TSP at Microsoft.

@thomasvochten

http://thomasvochten.com

mail@thomasvochten.com

Agenda

Meet the involuntary DBA

(*) Paul Randal

The Dynamic DuoSharePoint & SQL Server

Importance to SharePoint

SharePoint 2013

Database, anyone?

LIMITS & BOUNDARIES

General purpose 200 GB

Controlled < 4 TB

Structured > 4 TB

Limits & boundaries

Supported Versions of SQL

Enterprise?

System Requirements

Which frustrations?

More frustrations…

SharePoint makes DBA’s cry

Get rid of the GUID

Grey wizard

GOOD

White wizard

BAD

PowerShell to the rescue

http://autospinstaller.codeplex.com

Fundamentals

SQL Server Storage Primer

SQL Server databases

Recovery Models

http://technet.microsoft.com/en-us/magazine/2009.02.logging.aspx

Simple or full

DEMO

Preparing the platform

General considerations

Plan your disks

Prepare your disks

Partition alignment 1024K everywhere

Allocation unit size 64K for SQL data & logs

Prepare your disks

SQL Installation

Running Setup

Post setup

DEMO

Configuration Tips

Don’t forget

Instance level settings

Setting MAXDOP is mandatory in SharePoint 2013

Database level settings

SQL Aliases

DEMO

Operational Guidance

Backup/Restore

Required Reading

Don’t

Do

Check for Consistency

Index fragmentation

Check “sys.dm_db_index_physical_stats”Illustration by Paul Randal

* Illustration by Paul Randal

Reducing fragmentation

Managing Indexes

ALTER INDEX AllDocs_Url ON dbo.AllDocsREBUILD WITH (ONLINE=ON)GO

ALTER INDEX tp_SiteId ON dbo.AllListsREORGANIZEGO

Watch out for the shrink

DEMO

Tools & Resources

Database Maintenance

http://ola.hallengren.com/

Counter Intelligence

http://brentozar.com/blitz

http://sqlserverperformance.wordpress.com/

http://pal.codeplex.com

https://www.microsoftvirtualacademy.com/training-courses/tuning-sql-server-2012-for-sharepoint-2013-jump-start

Resources

http://technet.microsoft.com/en-us/library/hh292622.aspx

http://technet.microsoft.com/en-us/library/cc298801.aspx

http://technet.microsoft.com/en-us/library/ff945791.aspx

http://support.microsoft.com/kb/841057

http://technet.microsoft.com/en-us/library/cc262731.aspx

http://technet.microsoft.com/en-us/library/jj841106.aspx

Key Takeaways

Thank you!

@thomasvochten

top related