SharePoint Admins: the Reluctant DBAs
Todd KlindtThe guy losing his voiceSolanite Consulting
Shane YoungThe guy with his voiceSharePoint911OFC310
Who Am I?
Shane YoungOwner of SharePoint911.comMicrosoft Office SharePoint Server MVPConsultant, Trainer, Writer, & Speaker
[email protected] Twitter - @shanescowsBlog
http://msmvps.com/shaneSharePoint Consulting
http://www.sharepoint911.comSharePoint Training
http://www.tedpattison.net
WSS MVP since 2006Speaker, writer, consultant, AquariusPersonal Blog
www.toddklindt.com/blogCompany web site
www.solanite.comE-mail
[email protected] Twitter @ToddKlindtI consider it an honor and privilege that Shane is so mean to me.
Who is this Todd Klindt guy?
Session Agenda
Overview of how SharePoint uses SQLOverview of SQL versions and which you would use for whatCare and feeding Best Practices for your SQL serverA couple of cool SQL 2008 features to consider
SQL? I’m a SharePoint admin!
WSS and MOSSFarm configuration is stored in SQL. All SharePoint content is stored in SQL. No exceptions! *Central Admin is a web application and is in its own content databaseSearch gets its own databases
* Except one
Content Databases
Every web application gets a content databaseA web app may have multiple content databasesA site collection must exist completely in a single content databaseA content database may have multiple site collections
SharePoint Containment
ItemsFiles, calendar items, contacts, customers, images, custom
Lists
Doc Lib, Pages, Events, Discussions, Surveys, etc…
Sites
Portal, Wikis, Blogs, Team, Doc, Workspaces, Search Center
Site Collections
The Bag
DatabasesContent, Config, SSP, Search
Web Applications
Central Admin, SSP Admin, Content
Servers
Web Front End, APP, SQL
Farm
Which Version of SQL?SQL 2005 or 200864 bit
If you want to keep a no cost install, use SQL Express instead
SQL 200032 bitBasic Install
Standard or Enterprise?
Standard featuresSupports up to 4 CPUs (including cores)Supports OS Maximum RAM, 4 GB of RAM on 32 bit OSFailover is manual and restricted to two nodesSupports database mirroringNative 64 bit support
Movin’ on up…Enterprise
Full SQL 2005 functionalitySupports more than 4 CPUsSupport for up to 32 GB of RAM on 32 bit OS, OS limitation, not SQL’sActive failover for mirrorsKPI and Analysis Server built inComparison chart of all the versions at http://www.microsoft.com/sql/prodinfo/features/compare-features.mspx
Keep your SQL Server Happy
Maintenance PlansCan be created manually or with a wizardEasily modified with a graphical interfaceCan include a variety of operations, including backupsCan use SMTP to email plan success
What should I do in these?
Check database integrityReindex or rebuild database IndexesUpdate statisticsBackupsDefrag the file system
Things you Should Do
Check Database IntegrityVerifies integrity of databasesUses T-SQL command DBCC checkdbVery disk and CPU intensive
Indexes
Reindex databasesDefragments database indexes
Rebuild IndexCompletely recreates the database indexNot needed as oftenShrinking databases fragments your indexes and your data
Backups
Can be part of maintenance planThree types
FullPartialDifferential
Transaction logs
More Backup Recommendations
Can use built in software or third partyAllows for database compression and encryptionResults in smaller backupsCould also result in faster backups, if drive speed is the bottleneck
SQL 2008 Enterprise support compression and encryption out of the box
File system fragmentationSQL will be faster if the database files are contiguous in the file systemUsing the built in defrag tool will have performance ramificationsConsider using something like Diskeeper and its intelligent defragConsider stopping SQL if possible
Drink me
Database size is reduced by dropping unused spaceDo not shrink databases unless something drastic has happened
Massive site or content deletionsRemoving site collections from v2 databasesAbandoning databases
Has a heavy impact on the server
Eat me
Databases grow, it is what they doGrow operations are slow in SQL and will likely result in a fragmented database fileCreate database with enough space for one year’s worth of growth
Database Best Practices
Create multiple TempDB filesPut database and corresponding transaction logs on different spindlesArrange databases according to speedUse autogrow sparinglyKeep your databases under 100 GBUse multiple content databases
More Points to Ponder
Do not alter databases - Microsoft HATES thatIf using SQL 2005, install SP2Can use SharePoint farm backups to back up SQLDon’t forget your system databasesSharePoint 2007 SP1 supports SQL 2008
Noodling around in SQL 2008Todd KlindtSenior ConsultantSolanite Consulting
demo
www.microsoft.com/teched
Sessions On-Demand & Community
http://microsoft.com/technet
Resources for IT Professionals
http://microsoft.com/msdn
Resources for Developers
www.microsoft.com/learningMicrosoft Certification and Training Resources
www.microsoft.com/learning
Microsoft Certification & Training Resources
Resources
Track ResourcesSpin the Wheel: Attend SharePoint breakout sessions Mon-Thurs and collect the picture of the day. Come by the booth for a chance to spin the SharePoint wheel. Collect all 4 pictures and enter to win a Microsoft Arc Mouse, drawing 11:30am on Friday, game cards at the booth.
Product Info http://www.microsoft.com/SharePoint
Dev ResourcesSharePoint MSDN Web Site: http://msdn.microsoft.com/sharepointSharePoint Developer Resources: http://mssharepointdeveloper.com/
SharePoint Conference 2009 www.mssharepointconference.com
ITPro ResourcesSharePoint Tech Center: http://technet.microsoft.com/en-us/office/sharepointserver/SharePoint Best Practices:http://technet.microsoft.com/en-us/office/sharepointserver/bb736746.aspx
Collect the SharePoint Session Picture of the Day
Attend an Interactive Theater Session and enter to win a Microsoft ARC Mouse
Thursday’s Picture is:
SharePoint Pie
Attend any SharePoint Breakout Session day 1 – 4 and check the last slide for a daily picture.
Come to the TLC yellow area, SharePoint booths OFC 4 & 5 to spin the wheel for a chance to win a prize. The wheel only spins when the SharePoint spotlight is flashing. One spin per person.
Collect all four daily SharePoint pictures and enter to win a Microsoft ARC Mouse. Game cards can be picked up at the booth.
Drawing for Mice on Friday at the wheel at 11:30AM.
Complete an evaluation on CommNet and enter to win!
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS,
IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.