390 likes | 485 Views
How to Feed & Care for a SQL Server. SharePoint Saturday Virginia Beach 2014. Bio. Brian Garraty Solutions Architect at TPMG Former DBA, Developer 15 years with SQL Server. Platinum Sponsors. Welcome to SharePoint Saturday Virginia Beach Jan 11, 2014. Gold Sponsors.
E N D
How to Feed & Care for a SQL Server SharePoint Saturday Virginia Beach 2014 SPSVB, 1/11/2014
Bio • Brian Garraty • Solutions Architect at TPMG • Former DBA, Developer • 15 years with SQL Server SPSVB, 1/11/2014
Platinum Sponsors Welcome to SharePoint Saturday Virginia Beach Jan 11, 2014 Gold Sponsors 7:30 - 8:30 - Registration(Lobby) Breakfast (Sponsor Hall)8:30 - 8:45 - Welcome 9:00 - 10:15 – 1st Sessions10:30 - 11:45 – 2nd Sessions11:45 - 12:30 – Lunch (Sponsor Hall)12:30 - 1:45 - 3rd Sessions2:00 - 3:15 – 4th Sessions3:30 - 4:45 – 5th Sessions5:00 - 5:30 - Closing & Giveaways Silver Sponsors
Itinerary • SQL Server Administration 101 • Free Tools (that make it look easy) • SQL and SharePoint • SQL Community • Q&A SPSVB, 1/11/2014
SQL Server Administration 101 It’s about the data SPSVB, 1/11/2014
Show of Hands SPSVB, 1/11/2014
Pillars • Data Recovery • Data Integrity • Performance SPSVB, 1/11/2014
Recovery - Models • Simple • Full • Bulk Recovery SPSVB, 1/11/2014
Recovery - Backups • Full • Differential • Transaction Log • Snapshot • Third Party SPSVB, 1/11/2014
Recovery - Restores • First - Full • Then - Diff • Then - Log • STOPAT SPSVB, 1/11/2014
Recovery – Post-restore • Reset Database Owner • Remap Users • Reset Recovery Model • Restart Backup Chain SPSVB, 1/11/2014
Recovery - What Can Go Wrong • Permissions • Disk Space • Corrupt Database Backups files • Missing link SPSVB, 1/11/2014
Recovery - Practice • Practice • Often • Tough to learn during an outage SPSVB, 1/11/2014
Database Integrity • DBCC CHECKDB • Regularly • Scheduled • Monitor Results SPSVB, 1/11/2014
Integrity – SQLIOSim • SQLIOSim – tests validity of storage • Download from support.microsoft.com SPSVB, 1/11/2014
What Can Go Wrong • Corruption Detected • REPAIR_REBUILD – no data loss • REPAIR_ALLOW_DATA_LOSS – data loss possible • Don’t be afraid to call Microsoft Support SPSVB, 1/11/2014
Performance • Index Maintenance • Rebuild • Reorganize • Online - Enterprise Edition SPSVB, 1/11/2014
Performance - tempdb • Common bottleneck • Dedicated LUN – RAID 1+0, SSD • Multiple data files • Consistent size and growth settings • Trace Flag 1118 SPSVB, 1/11/2014
Performance - storage • Deep topic • Basics • RAID 1+0 • Multiple LUNs • Dedicated LUNs • SSD for tempdb • Ask your vendor for their SQL best practices SPSVB, 1/11/2014
Free Tools that make it look easy SPSVB, 1/11/2014
ola.hallengren.com • Backup script • Integrity Check script • Index Maintenance script SPSVB, 1/11/2014
sp_whoisactive • Monitoring script • Active connections • Sleeping connections • Blocking • Current query • CPU • Reads • Writes • More • Written and maintained by Adam Machanic SPSVB, 1/11/2014
sp_blitz • Server Health Check • Security • Configuration • Performance • sp_blitz.exe – Gui version • Written and maintained by BrentOzar.com SPSVB, 1/11/2014
SQL and SharePoint Can’t we all just get along? SPSVB, 1/11/2014
Not Always on Same Page SPSVB, 1/11/2014
Alas, a Whitepaper! • Search “Paul Randal SharePoint white paper” • http://technet.microsoft.com/en-us/library/cc262731.aspx SPSVB, 1/11/2014
Do What You Do • Regular DB Maintenance Applies • Backups • DBCC CHECKDB • Index maintenance SPSVB, 1/11/2014
Health Analyzer • Database maintenance rules • Does not cover all databases • I never bothered SPSVB, 1/11/2014
Shrink Not • Cause for earlier disagreement • Should be done sparingly • Should be done fully informed SPSVB, 1/11/2014
Other Best Practices • Windows Only Authentication • Enterprise Edition • MAXDOP 1 • Backup Compression on SPSVB, 1/11/2014
Other – con’t • Tempdb • Dedicated drives • # • Size • Dedicated disk for log files • Autogrowthsettings • Instant File Initialization SPSVB, 1/11/2014
Disclaimer • Actual results may vary SPSVB, 1/11/2014
SQL Community Friends in a Digital Age SPSVB, 1/11/2014
#sqlhelp • Twitter hashtag • Monitored by SQL experts and enthusiasts • Spam at own risk SPSVB, 1/11/2014
SQL Blogosphere • SQLBlog.com • SQLSkills.com • BrentOzar.com SPSVB, 1/11/2014
SQL Publications • Simple-talk.com • SQLServerCentral.com • DatabaseWeekly.com SPSVB, 1/11/2014
User Groups • PASS • PASS Summit • SQL Saturday • Virtual Chapters • Local Chapters • HRSSUG SPSVB, 1/11/2014
Q& A SPSVB, 1/11/2014
Resources • TechNet SharePoint 2010 SQL Configcheck • Paul Randal's Blog • Adam Machanic’s Blog • BrentOzar.com • Microsoft presentation • NULLgarity.wordpress.com SPSVB, 1/11/2014