how to feed & care for a sql server
DESCRIPTION
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. - PowerPoint PPT PresentationTRANSCRIPT
SPSVB, 1/11/2014 2
Bio• Brian Garraty• Solutions Architect at TPMG• Former DBA, Developer• 15 years with SQL Server
Gold Sponsors
Platinum Sponsors
Silver 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
Welcome to SharePoint Saturday
Virginia BeachJan 11, 2014
SPSVB, 1/11/2014 4
Itinerary• SQL Server Administration 101
• Free Tools (that make it look easy)
• SQL and SharePoint
• SQL Community
• Q&A
SPSVB, 1/11/2014 9
Recovery - Backups• Full
• Differential
• Transaction Log
• Snapshot
• Third Party
SPSVB, 1/11/2014 11
Recovery – Post-restore
• Reset Database Owner
• Remap Users
• Reset Recovery Model
• Restart Backup Chain
SPSVB, 1/11/2014 12
Recovery - What Can Go Wrong
• Permissions
• Disk Space
• Corrupt Database Backups files
• Missing link
SPSVB, 1/11/2014 15
Integrity – SQLIOSim• SQLIOSim – tests validity of storage
• Download from support.microsoft.com
SPSVB, 1/11/2014 16
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 17
Performance• Index Maintenance
o Rebuild
o Reorganize
• Online - Enterprise Edition
SPSVB, 1/11/2014 18
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 19
Performance - storage• Deep topic
• Basicso RAID 1+0o Multiple LUNso Dedicated LUNso SSD for tempdb
• Ask your vendor for their SQL best practices
SPSVB, 1/11/2014 21
ola.hallengren.com• Backup script
• Integrity Check script
• Index Maintenance script
SPSVB, 1/11/2014 22
sp_whoisactive• Monitoring script
o Active connectionso Sleeping connectionso Blockingo Current queryo CPUo Readso Writeso More
• Written and maintained by Adam Machanic
SPSVB, 1/11/2014 23
sp_blitz• Server Health Check
o Securityo Configurationo Performance
• sp_blitz.exe – Gui version
• Written and maintained by BrentOzar.com
SPSVB, 1/11/2014 26
Alas, a Whitepaper!• Search “Paul Randal SharePoint white paper”
• http://technet.microsoft.com/en-us/library/cc262731.aspx
SPSVB, 1/11/2014 27
Do What You Do• Regular DB Maintenance Applies
o Backupso DBCC CHECKDBo Index maintenance
SPSVB, 1/11/2014 28
Health Analyzer• Database maintenance rules
• Does not cover all databases
• I never bothered
SPSVB, 1/11/2014 29
Shrink Not• Cause for earlier disagreement
• Should be done sparingly
• Should be done fully informed
SPSVB, 1/11/2014 30
Other Best Practices• Windows Only Authentication
• Enterprise Edition
• MAXDOP 1
• Backup Compression on
SPSVB, 1/11/2014 31
Other – con’t• Tempdb
o Dedicated driveso #o Size
• Dedicated disk for log files
• Autogrowth settings
• Instant File Initialization
SPSVB, 1/11/2014 34
#sqlhelp• Twitter hashtag
• Monitored by SQL experts and enthusiasts
• Spam at own risk
SPSVB, 1/11/2014 37
User Groups• PASS
o PASS Summito SQL Saturdayo Virtual Chapterso Local Chapters
• HRSSUG
SPSVB, 1/11/2014 39
Resources• TechNet SharePoint 2010 SQL Config check
• Paul Randal's Blog
• Adam Machanic’s Blog
• BrentOzar.com
• Microsoft presentation
• NULLgarity.wordpress.com