Movatterモバイル変換


[0]ホーム

URL:


SlideShare a Scribd company logo

Automating SQL Server Database Creation for SharePoint

Download as PPT, PDF
1 like2,098 views
Talbott Crowell
Talbott Crowell

This document discusses automating SQL Server database creation for SharePoint. It covers planning for document storage, including structuring data across site collections and content databases. A sample solution is presented that partitions data by year into separate content databases to optimize manageability. Other considerations for large-scale document storage with SharePoint like search indexing, backups, and future tools are also covered.

1 of 34
Downloaded 85 times
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Automating SQL Server Database Creation for SharePoint Talbott Crowell ThirdM.com http://TalbottC.spaces.Live.com
Automating SQL Server Database Creation SharePoint SQL Server Overview Planning for Document Content Storage Plan for MOSS Software Boundaries Search Indexing Backup/Restore and Availability Structuring Data in SharePoint Site Collections Content Databases Partitioning Data in SQL Server Sample Solution Other Considerations for Document Storage, Future...
SharePoint SQL Server Overview What is SharePoint? WSS (Windows SharePoint Services 3.0) – Free with Win Server MOSS (Microsoft Office SharePoint Server 2007) SharePoint Farm Small, Medium, Large SQL Server Configuration Database Content Database(s) Search Index Database Shared Service Provider Database SQL Server Windows Server Windows Server IIS (Internet Info Svcs) ASP.NET WSS 3.0 MOSS 2007
SharePoint Farm Sizes Single-server Farm  Two-server Farm  Four-server Farm  Five-server Farm
SharePoint Large Farms
Planning for Document Content Storage MOSS Software Boundaries Logical Structure Site Collections, Sites, Lists, Folders Using Folders for Scalability Search Indexing Indexing Columns for Performance Backup/Restore and Availabilty
Typical Large-Scale Content Management Scenarios Large-scale authoring environment Document Center site template, most users are authors 50K or more docs, 500 or more folders, versioning turned on Single database up to 150 GB  Large-scale content archive Knowledge base site, document archive, Records Center site template 1 million or more documents Single database up to 400 GB Extremely large-scale content archive 10 million docs across 5,000 or more folders Users (50K or more) browse content by searching Content submitted by using custom submission form
Plan for MOSS Software Boundaries Limitations SSP: 20 per farm (3 per farm recommended) Web app: 99 per SSP Content database: 100 per web app Site collections: 50K per content DB, 150K per web app Web site: 250K per site collection Recommended content child items Site collections: 50K per web app Site hierarchy: 2000 sub-sites for any parent site Site: 2000 lists (or document libraries) per site  Document Library:  10 million documents, 2000 documents per view (folder) Folder: 2000 items per folder  http://technet.microsoft.com/en-us/library/cc263028.aspx
Flat document library quickest drop in throughput occurs when the total number of documents is less than 2,000 Source: Technet article “Plan for software boundaries (Office SharePoint Server)”  http://technet.microsoft.com/en-us/library/cc262787.aspx
Hierarchical document library 500 documents per folder No significant throughput degradation up to 1 million documents  Source: Technet article “Plan for software boundaries (Office SharePoint Server)”  http://technet.microsoft.com/en-us/library/cc262787.aspx
Search Indexing GB of disk space required =  Total_Corpus_Size (in GB) x File_Size_Modifier x 2.85 File_Size_Modifier 1.0 for very small files (average 1 KB) 0.12 for moderate size (average 10 KB) 0.05 for large files (average 100 KB or larger) Example: 1 GB files average size 10 KB 1 GB x 0.12 = 0.12 GB (estimated size of index file is 120MB) Next, multiply the estimated size of the index file by 2.85: 120 MB x 2.85 =  342 MB See: Estimate performance and capacity requirements for search environments http://technet.microsoft.com/en-us/library/cc262574.aspx
Indexing Columns for Performance Improves performance for sorting or filtering list Not done in SQL Server! Changes made in SharePoint List Settings Manually via browser Programmatically through the API Declaratively using CAML (WSP)
Backup/Restore and Availability Databases to back up Content Databases Config Databases (Config, Admin, SSP Admin) Search Databases (WSS, SSP) Other backups  IIS config, WFE 12 folder, search index files Under 200 GB You can use STSADM -o backup Over 200 GB Microsoft System Center Data Protection Manager 2007 (DPM) AvePoint or any backup vendor that supports MOSS 2007
Structuring Data in SharePoint Farm  Can have 1 or more Web Applications Can have 1 or more Shared Service Providers (SSP) Web Application Logical “portal” or destination (simple URL like:  http://documents ) Each web app must belong to a single SSP (MOSS only)  Can have 1 or more site collections Site collection Can have 1 or more sites Site Can have 0 or more lists (document libraries) List Can have 0 or more items (documents, folders, etc…)
DEMO Walk through of SharePoint Logical Structure SharePoint Farm Web Application Site Collection Site List (Document Library)
Site Collections Can use site collection to partitioning data in SQL Server  From database perspective is the smallest logical unit that can have its own database All sites and documents created inside site collection will be stored in same database Content Database Site collection Must have at least one “root” site Can be created programmatically
DEMO Manually creating SharePoint Structure Site Collection Content Database List (Document Library)
Content Database SharePoint Central Administrator (Central Admin) Disabled or Offline Database what does it mean? Still used by existing site collections Can still create a new site, library, upload document, changes Can’t create a new Site Collection! How do you force documents into a specific content database? Disable all content databases except the one you want to use Take “Offline” in Central Admin Create new site collection
Programmatic Approach Imitate manual approach Steps Disable all content databases (Offline) Create a new content database and make it enabled/online Create a new site collection Site collection is stored in new content database Disable new content database Restore the state back to the default online content database(s) for web application
Create Content Databases Programmatically Reference  Microsoft.SharePoint.dll Using Microsoft.SharePoint.Administration SPWebApplication webApplication = SPWebApplication.Lookup(webAppUri); SPContentDatabaseCollection  contentDBs  = webApplication.ContentDatabases; ... if (contentDB.Status == SPObjectStatus.Online) { contentDB.Status = SPObjectStatus.Disabled; contentDB.Update(); } ... CreateContentDatabase(yearString) SPSite siteCollection = webApplication.Sites.Add(... Collection of databases Loop through collection and disable online databases Call routine (next slide) to crate DB Finally add new site collection
Create Content Databases Programmatically private void CreateContentDatabase(string suffix) { SPContentDatabase copyFromDb = webApplication.ContentDatabases[0]; string prefix = "MyApp_ContentDB_"; string dbName = prefix + suffix; int warningCount = 0; int maximumSiteCount = 1; int status = 0; // 0=ready, 1=Offline SPContentDatabase contentDb = webApplication.ContentDatabases.Add(copyFromDb.Server, dbName, copyFromDb.Username, copyFromDb.Password, warningCount, maximumSiteCount, status); }
DEMO Creating SharePoint Structure using API Site Collection Content Database
Sample Solution Document repository Needed to scale to millions of documents Needed to be searched Needed to be maintainable by SQL Admins Stored files programmatically Solution Single web app Site collection per time period Each site collection had one site with one document library Use folders to handle scalability Combination of date and business division and document meta data
MOSS Content Database Storage Estimates Year New Docs Total Docs Doc File  Size (GB) Doc Lib  Size (GB) Year 1 2,000,000  2,000,000  200  300 Year 2 2,300,000  4,300,000  430  650 Year 3 2,700,000  7,000,000  700  1000
Search Index Storage Estimates Search Index files stored on the WFE Search DB stores additional information used by search service Year   Total Docs Document Lib Size (GB)   Index Size(GB)   Search DB Size(GB)   Year 1   2,000,000 200 15 60 Year 2   4,300,000 430 30 130 Year 3   7,000,000 700 50 200
Content Database Partition Strategy Goals Optimize Availability or Manageability? Optimize Availability Backup/Restore recovery time Smaller (and quicker) is better Optimize Manageability Manageable number of databases Less is better
Database Partition Strategy Database Size and Count Database Partition Strategy  1 Content Database per Year  1 Content Database per Quarter  Average Size  340 GB 85 GB # of DB Year 1 1 4 # of DB Year 2 2 8 # of DB Year 3  3 12 DB Per Year  1 4
Other Considerations for document storage RBS Remote BLOB Storage (SQL Server) EBS External BLOB Storage (SharePoint)
Remote BLOB Store Provider Library Implementation Specification Store BLOBs on a Remote Blob Store (RBS) RBS Typically a separate box on same the network as the SQL Server.   Managed by SQL Server  Integrity between the database records and the RBS external store is maintained Microsoft SQL Server 2008 Feature Pack, October 2008
External BLOB Storage (EBS) in WSS EBS runs parallel to the site's SQL Server content database, which stores the site's structured data To coordinate the two data stores, you must implement a COM interface ISPExternalBinaryProvider Uses simple semantics to recognize file Save and Open commands  Invokes redirection calls to BLOB store when it recognizes BLOB data streams You must install, register, and configure the EBS Provider on each WFE
Resources EBS for WSS Kyle’s Blog (extensive coverage of his implementation) http://www.kyletillman.net/blog/post/SharePoint_External_Binary_Store-PartI.aspx Plan for MOSS Software Boundaries (Folder Structure) http://technet.microsoft.com/en-us/library/cc262787.aspx
Future Tools Visual Studio 2010 Tools for SharePoint Server Explorer for SharePoint viewing Lists and other artifacts in SharePoint directly inside of Visual Studio Windows SharePoint Services Project (WSP file) Import to create a new solution Packaging explorer and packaging editor lets you structure the SharePoint features and WSP file that is created SharePoint speculation Will SharePoint v.Next utilize RBS or EBS for document storage?  Maybe 3 rd  party options?
Summary Automating SQL Server Database Creation Planning for Document Content Storage Plan for MOSS Software Boundaries Search Indexing Backup/Restore and Availability Structuring Data in SharePoint Site Collections Content Databases Partitioning Data in SQL Server Sample Solution Other Considerations for Document Storage, Future...
Thank you Questions? Talbott Crowell ThirdM.com http://TalbottC.spaces.Live.com
Ad

Recommended

PPTX
Custom Development for SharePoint
Talbott Crowell
 
PDF
ECS19 - Katja Jokisalo - Modernize your Intranet
European Collaboration Summit
 
PDF
ECS19 - Laura Kokkarinen - Everything you need to know about SharePoint site ...
European Collaboration Summit
 
PDF
ECS19 - Rodrigo Pinto - Modernize Your Classic SharePoint Sites
European Collaboration Summit
 
PPTX
Building No-Code Collaboration Solutions on Office 365
Dragan Panjkov
 
PPTX
SharePoint Framework, React, and Office UI sps Silicon Valley
Sonja Madsen
 
PPTX
Building SharePoint add-ins with JavaScript and c# sps Silicon Valley
Sonja Madsen
 
PPTX
SharePoint Framework, React and Office UI SPS Paris 2016 - d01
Sonja Madsen
 
PPTX
ECS19 - Vesa Juvonen - SharePoint and Office 365 Development PowerClass
European Collaboration Summit
 
PDF
Tutorial, Part 1: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
SPTechCon
 
PPTX
European SharePoint Conference Training Week - Installing SharePoint 2013
Alan Richards
 
PPTX
SharePoint 2016 Adoption - Lessons Learned and Advanced Troubleshooting
John Calvert
 
PDF
SharePointFest 2013 Washington DC - WF 204 - Build scalable SharePoint 2013 S...
Brian Culver
 
PDF
Tutorial, Part 2: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
SPTechCon
 
PPTX
SharePoint 2013 i SharePoint Online
Dragan Panjkov
 
PPTX
SharePoint Programming Basic
Quang Nguyễn Bá
 
PDF
ECS19 - Rodrigo Pinto - Migrating to Teams, real cases and scenarios
European Collaboration Summit
 
PDF
SharePoint 2016 Upgrade Planning
Chandima Kulathilake
 
PPTX
Deep Dive into the Content Query Web Part by Christina Wheeler - SPTechCon
SPTechCon
 
PPTX
Working with a super model for SharePoint Tuga IT 2016
Sonja Madsen
 
PDF
WF 103 - Build scalable SharePoint 2013 Staged Workflows to run locally and i...
Brian Culver
 
PDF
Migrate SharePoint 2016 To SharePoint 2019 Environment Using Content Database...
Softree Technology Pvt. Ltd
 
PDF
SPSSTHLM - Using JSLink and Display Templates for ITPros
Paul Hunt
 
PPTX
Handling Cross-Domain calls & authentication in SharePoint 2013
BIWUG
 
PPTX
SharePoint Intersections - SP11 - SharePoint and IaaS - The OnPrem in the Cloud
Dan Usher
 
PPTX
Gabriel Gayhart - XML Pointer File Example
linkedinsys
 
PPTX
ECS2019 - Managing Content Types in the Modern World
Marc D Anderson
 
PPTX
ECS 19 Bert Jansen - Taking your SharePoint to the next level – Transforming ...
European Collaboration Summit
 
PDF
Using The School Website
Michael Atkinson
 
PDF
Table of Content - Thesis
Dr. Paulsharma Chakravarthy
 

More Related Content

What's hot(20)

PPTX
ECS19 - Vesa Juvonen - SharePoint and Office 365 Development PowerClass
European Collaboration Summit
 
PDF
Tutorial, Part 1: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
SPTechCon
 
PPTX
European SharePoint Conference Training Week - Installing SharePoint 2013
Alan Richards
 
PPTX
SharePoint 2016 Adoption - Lessons Learned and Advanced Troubleshooting
John Calvert
 
PDF
SharePointFest 2013 Washington DC - WF 204 - Build scalable SharePoint 2013 S...
Brian Culver
 
PDF
Tutorial, Part 2: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
SPTechCon
 
PPTX
SharePoint 2013 i SharePoint Online
Dragan Panjkov
 
PPTX
SharePoint Programming Basic
Quang Nguyễn Bá
 
PDF
ECS19 - Rodrigo Pinto - Migrating to Teams, real cases and scenarios
European Collaboration Summit
 
PDF
SharePoint 2016 Upgrade Planning
Chandima Kulathilake
 
PPTX
Deep Dive into the Content Query Web Part by Christina Wheeler - SPTechCon
SPTechCon
 
PPTX
Working with a super model for SharePoint Tuga IT 2016
Sonja Madsen
 
PDF
WF 103 - Build scalable SharePoint 2013 Staged Workflows to run locally and i...
Brian Culver
 
PDF
Migrate SharePoint 2016 To SharePoint 2019 Environment Using Content Database...
Softree Technology Pvt. Ltd
 
PDF
SPSSTHLM - Using JSLink and Display Templates for ITPros
Paul Hunt
 
PPTX
Handling Cross-Domain calls & authentication in SharePoint 2013
BIWUG
 
PPTX
SharePoint Intersections - SP11 - SharePoint and IaaS - The OnPrem in the Cloud
Dan Usher
 
PPTX
Gabriel Gayhart - XML Pointer File Example
linkedinsys
 
PPTX
ECS2019 - Managing Content Types in the Modern World
Marc D Anderson
 
PPTX
ECS 19 Bert Jansen - Taking your SharePoint to the next level – Transforming ...
European Collaboration Summit
 
ECS19 - Vesa Juvonen - SharePoint and Office 365 Development PowerClass
European Collaboration Summit
 
Tutorial, Part 1: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
SPTechCon
 
European SharePoint Conference Training Week - Installing SharePoint 2013
Alan Richards
 
SharePoint 2016 Adoption - Lessons Learned and Advanced Troubleshooting
John Calvert
 
SharePointFest 2013 Washington DC - WF 204 - Build scalable SharePoint 2013 S...
Brian Culver
 
Tutorial, Part 2: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
SPTechCon
 
SharePoint 2013 i SharePoint Online
Dragan Panjkov
 
SharePoint Programming Basic
Quang Nguyễn Bá
 
ECS19 - Rodrigo Pinto - Migrating to Teams, real cases and scenarios
European Collaboration Summit
 
SharePoint 2016 Upgrade Planning
Chandima Kulathilake
 
Deep Dive into the Content Query Web Part by Christina Wheeler - SPTechCon
SPTechCon
 
Working with a super model for SharePoint Tuga IT 2016
Sonja Madsen
 
WF 103 - Build scalable SharePoint 2013 Staged Workflows to run locally and i...
Brian Culver
 
Migrate SharePoint 2016 To SharePoint 2019 Environment Using Content Database...
Softree Technology Pvt. Ltd
 
SPSSTHLM - Using JSLink and Display Templates for ITPros
Paul Hunt
 
Handling Cross-Domain calls & authentication in SharePoint 2013
BIWUG
 
SharePoint Intersections - SP11 - SharePoint and IaaS - The OnPrem in the Cloud
Dan Usher
 
Gabriel Gayhart - XML Pointer File Example
linkedinsys
 
ECS2019 - Managing Content Types in the Modern World
Marc D Anderson
 
ECS 19 Bert Jansen - Taking your SharePoint to the next level – Transforming ...
European Collaboration Summit
 

Viewers also liked(11)

PDF
Using The School Website
Michael Atkinson
 
PDF
Table of Content - Thesis
Dr. Paulsharma Chakravarthy
 
PPSX
MS SQL Server
Md. Mahedee Hasan
 
PDF
Impact of CEO Compensation Structure on M&A Performance
Anton Zhukov
 
PDF
Thesis Documentation
lchapmandesigns
 
PPTX
Master thesis presentation
Sofia Nyyssönen
 
PDF
CLASSROOM MANAGEMENT APPROACHES OF PRIMARY SCHOOL TEACHERS
shehazachary
 
PPTX
Sql Server 2012
Performics.Convonix
 
PDF
How to Write a Thesis
Professor Abd Karim Alias
 
PPTX
School Management System ppt
Mohsin Ali
 
DOCX
Thesis
Yeng Barce
 
Using The School Website
Michael Atkinson
 
Table of Content - Thesis
Dr. Paulsharma Chakravarthy
 
MS SQL Server
Md. Mahedee Hasan
 
Impact of CEO Compensation Structure on M&A Performance
Anton Zhukov
 
Thesis Documentation
lchapmandesigns
 
Master thesis presentation
Sofia Nyyssönen
 
CLASSROOM MANAGEMENT APPROACHES OF PRIMARY SCHOOL TEACHERS
shehazachary
 
Sql Server 2012
Performics.Convonix
 
How to Write a Thesis
Professor Abd Karim Alias
 
School Management System ppt
Mohsin Ali
 
Thesis
Yeng Barce
 
Ad

Similar to Automating SQL Server Database Creation for SharePoint(20)

PPTX
SharePoint Databases: What you need to know (201504)
Alan Eardley
 
PPTX
SPS Kansas City: What SharePoint Admin need to know about SQL
J.D. Wade
 
PPTX
What SharePoint Admins need to know about SQL-Cinncinati
J.D. Wade
 
PPTX
What SQL DBA's need to know about SharePoint
J.D. Wade
 
PPTX
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013
J.D. Wade
 
PPTX
SharePoint Saturday St. Louis 2014: What SharePoint Admins need to know about...
J.D. Wade
 
PPTX
What SQL DBA's need to know about SharePoint-St. Louis 2013
J.D. Wade
 
PPTX
What SQL DBAs need to know about SharePoint-Indianapolis 2013
J.D. Wade
 
PDF
Introduction to SharePoint for SQLserver DBAs
Steve Knutson
 
PDF
SharePoint Storage Best Practices
Mark Ginnebaugh
 
PPT
Back to the Basics: SharePoint Fundamentals by Joel Oleson
Joel Oleson
 
PPTX
SharePoint Databases: What you need to know (201512)
Alan Eardley
 
PPTX
1. SQL Server forSharePoint geeksA gentle introductionThomas Vochten • Septem...
BIWUG
 
PPTX
Large Scale SharePoint SQL Deployments
Joel Oleson
 
PPTX
SharePoint and Large Scale SQL Deployments - NZSPC
guest7c2e070
 
PPTX
SharePoint Databases: What you need to know (201509)
Alan Eardley
 
PDF
SPCA2013 - Best Practices & Considerations for Designing Your SharePoint Logi...
NCCOMMS
 
PPT
Large Scale SQL Considerations for SharePoint Deployments
Joel Oleson
 
PDF
SQL Server and SharePoint - Best Practices presented by Steffen Krause, Micro...
European SharePoint Conference
 
PPTX
SharePoint Administration
Muhammad Zeeshan Tahir
 
SharePoint Databases: What you need to know (201504)
Alan Eardley
 
SPS Kansas City: What SharePoint Admin need to know about SQL
J.D. Wade
 
What SharePoint Admins need to know about SQL-Cinncinati
J.D. Wade
 
What SQL DBA's need to know about SharePoint
J.D. Wade
 
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013
J.D. Wade
 
SharePoint Saturday St. Louis 2014: What SharePoint Admins need to know about...
J.D. Wade
 
What SQL DBA's need to know about SharePoint-St. Louis 2013
J.D. Wade
 
What SQL DBAs need to know about SharePoint-Indianapolis 2013
J.D. Wade
 
Introduction to SharePoint for SQLserver DBAs
Steve Knutson
 
SharePoint Storage Best Practices
Mark Ginnebaugh
 
Back to the Basics: SharePoint Fundamentals by Joel Oleson
Joel Oleson
 
SharePoint Databases: What you need to know (201512)
Alan Eardley
 
1. SQL Server forSharePoint geeksA gentle introductionThomas Vochten • Septem...
BIWUG
 
Large Scale SharePoint SQL Deployments
Joel Oleson
 
SharePoint and Large Scale SQL Deployments - NZSPC
guest7c2e070
 
SharePoint Databases: What you need to know (201509)
Alan Eardley
 
SPCA2013 - Best Practices & Considerations for Designing Your SharePoint Logi...
NCCOMMS
 
Large Scale SQL Considerations for SharePoint Deployments
Joel Oleson
 
SQL Server and SharePoint - Best Practices presented by Steffen Krause, Micro...
European SharePoint Conference
 
SharePoint Administration
Muhammad Zeeshan Tahir
 
Ad

More from Talbott Crowell(18)

PPTX
Talbott's brief History of Computers for CollabDays Hamburg 2025
Talbott Crowell
 
PPTX
Top 7 mistakes
Talbott Crowell
 
PPTX
Top 3 Mistakes when Building
Talbott Crowell
 
PPTX
Building high performance and scalable share point applications
Talbott Crowell
 
PPTX
Road to the Cloud - Extending your reach with SharePoint and Office 365
Talbott Crowell
 
PPTX
Custom Development in SharePoint – What are my options now?
Talbott Crowell
 
PPTX
Developing a Provider Hosted SharePoint app
Talbott Crowell
 
PPTX
Developing a provider hosted share point app
Talbott Crowell
 
PPTX
Introduction to F# 3.0
Talbott Crowell
 
PPTX
PowerShell and SharePoint @spsnyc July 2012
Talbott Crowell
 
PPTX
PowerShell and SharePoint
Talbott Crowell
 
PPTX
Welcome to windows 8
Talbott Crowell
 
PPTX
Exploring SharePoint with F#
Talbott Crowell
 
PPTX
Automating PowerShell with SharePoint
Talbott Crowell
 
PPTX
F# And Silverlight
Talbott Crowell
 
PPTX
SharePoint Saturday Boston 2010
Talbott Crowell
 
PPTX
Introduction to F#
Talbott Crowell
 
PPTX
Architecting Solutions for the Manycore Future
Talbott Crowell
 
Talbott's brief History of Computers for CollabDays Hamburg 2025
Talbott Crowell
 
Top 7 mistakes
Talbott Crowell
 
Top 3 Mistakes when Building
Talbott Crowell
 
Building high performance and scalable share point applications
Talbott Crowell
 
Road to the Cloud - Extending your reach with SharePoint and Office 365
Talbott Crowell
 
Custom Development in SharePoint – What are my options now?
Talbott Crowell
 
Developing a Provider Hosted SharePoint app
Talbott Crowell
 
Developing a provider hosted share point app
Talbott Crowell
 
Introduction to F# 3.0
Talbott Crowell
 
PowerShell and SharePoint @spsnyc July 2012
Talbott Crowell
 
PowerShell and SharePoint
Talbott Crowell
 
Welcome to windows 8
Talbott Crowell
 
Exploring SharePoint with F#
Talbott Crowell
 
Automating PowerShell with SharePoint
Talbott Crowell
 
F# And Silverlight
Talbott Crowell
 
SharePoint Saturday Boston 2010
Talbott Crowell
 
Introduction to F#
Talbott Crowell
 
Architecting Solutions for the Manycore Future
Talbott Crowell
 

Recently uploaded(20)

PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
Meetup Kickoff & Welcome - Rohit Yadav, CSIUG Chairman
ShapeBlue
 
PDF
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
Français Patch Tuesday - Juillet
Ivanti
 
PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
PDF
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Ampere Offers Energy-Efficient Future For AI And Cloud
ShapeBlue
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Rethinking Security Operations - SOC Evolution Journey.pdf
Haris Chughtai
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Meetup Kickoff & Welcome - Rohit Yadav, CSIUG Chairman
ShapeBlue
 
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
Français Patch Tuesday - Juillet
Ivanti
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Ampere Offers Energy-Efficient Future For AI And Cloud
ShapeBlue
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Rethinking Security Operations - SOC Evolution Journey.pdf
Haris Chughtai
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 

Automating SQL Server Database Creation for SharePoint

  • 1.Automating SQL Server Database Creation for SharePoint Talbott Crowell ThirdM.com http://TalbottC.spaces.Live.com
  • 2.Automating SQL Server Database Creation SharePoint SQL Server Overview Planning for Document Content Storage Plan for MOSS Software Boundaries Search Indexing Backup/Restore and Availability Structuring Data in SharePoint Site Collections Content Databases Partitioning Data in SQL Server Sample Solution Other Considerations for Document Storage, Future...
  • 3.SharePoint SQL Server Overview What is SharePoint? WSS (Windows SharePoint Services 3.0) – Free with Win Server MOSS (Microsoft Office SharePoint Server 2007) SharePoint Farm Small, Medium, Large SQL Server Configuration Database Content Database(s) Search Index Database Shared Service Provider Database SQL Server Windows Server Windows Server IIS (Internet Info Svcs) ASP.NET WSS 3.0 MOSS 2007
  • 4.SharePoint Farm Sizes Single-server Farm Two-server Farm Four-server Farm Five-server Farm
  • 6.Planning for Document Content Storage MOSS Software Boundaries Logical Structure Site Collections, Sites, Lists, Folders Using Folders for Scalability Search Indexing Indexing Columns for Performance Backup/Restore and Availabilty
  • 7.Typical Large-Scale Content Management Scenarios Large-scale authoring environment Document Center site template, most users are authors 50K or more docs, 500 or more folders, versioning turned on Single database up to 150 GB Large-scale content archive Knowledge base site, document archive, Records Center site template 1 million or more documents Single database up to 400 GB Extremely large-scale content archive 10 million docs across 5,000 or more folders Users (50K or more) browse content by searching Content submitted by using custom submission form
  • 8.Plan for MOSS Software Boundaries Limitations SSP: 20 per farm (3 per farm recommended) Web app: 99 per SSP Content database: 100 per web app Site collections: 50K per content DB, 150K per web app Web site: 250K per site collection Recommended content child items Site collections: 50K per web app Site hierarchy: 2000 sub-sites for any parent site Site: 2000 lists (or document libraries) per site Document Library: 10 million documents, 2000 documents per view (folder) Folder: 2000 items per folder http://technet.microsoft.com/en-us/library/cc263028.aspx
  • 9.Flat document library quickest drop in throughput occurs when the total number of documents is less than 2,000 Source: Technet article “Plan for software boundaries (Office SharePoint Server)” http://technet.microsoft.com/en-us/library/cc262787.aspx
  • 10.Hierarchical document library 500 documents per folder No significant throughput degradation up to 1 million documents Source: Technet article “Plan for software boundaries (Office SharePoint Server)” http://technet.microsoft.com/en-us/library/cc262787.aspx
  • 11.Search Indexing GB of disk space required = Total_Corpus_Size (in GB) x File_Size_Modifier x 2.85 File_Size_Modifier 1.0 for very small files (average 1 KB) 0.12 for moderate size (average 10 KB) 0.05 for large files (average 100 KB or larger) Example: 1 GB files average size 10 KB 1 GB x 0.12 = 0.12 GB (estimated size of index file is 120MB) Next, multiply the estimated size of the index file by 2.85: 120 MB x 2.85 = 342 MB See: Estimate performance and capacity requirements for search environments http://technet.microsoft.com/en-us/library/cc262574.aspx
  • 12.Indexing Columns for Performance Improves performance for sorting or filtering list Not done in SQL Server! Changes made in SharePoint List Settings Manually via browser Programmatically through the API Declaratively using CAML (WSP)
  • 13.Backup/Restore and Availability Databases to back up Content Databases Config Databases (Config, Admin, SSP Admin) Search Databases (WSS, SSP) Other backups IIS config, WFE 12 folder, search index files Under 200 GB You can use STSADM -o backup Over 200 GB Microsoft System Center Data Protection Manager 2007 (DPM) AvePoint or any backup vendor that supports MOSS 2007
  • 14.Structuring Data in SharePoint Farm Can have 1 or more Web Applications Can have 1 or more Shared Service Providers (SSP) Web Application Logical “portal” or destination (simple URL like: http://documents ) Each web app must belong to a single SSP (MOSS only) Can have 1 or more site collections Site collection Can have 1 or more sites Site Can have 0 or more lists (document libraries) List Can have 0 or more items (documents, folders, etc…)
  • 15.DEMO Walk through of SharePoint Logical Structure SharePoint Farm Web Application Site Collection Site List (Document Library)
  • 16.Site Collections Can use site collection to partitioning data in SQL Server From database perspective is the smallest logical unit that can have its own database All sites and documents created inside site collection will be stored in same database Content Database Site collection Must have at least one “root” site Can be created programmatically
  • 17.DEMO Manually creating SharePoint Structure Site Collection Content Database List (Document Library)
  • 18.Content Database SharePoint Central Administrator (Central Admin) Disabled or Offline Database what does it mean? Still used by existing site collections Can still create a new site, library, upload document, changes Can’t create a new Site Collection! How do you force documents into a specific content database? Disable all content databases except the one you want to use Take “Offline” in Central Admin Create new site collection
  • 19.Programmatic Approach Imitate manual approach Steps Disable all content databases (Offline) Create a new content database and make it enabled/online Create a new site collection Site collection is stored in new content database Disable new content database Restore the state back to the default online content database(s) for web application
  • 20.Create Content Databases Programmatically Reference Microsoft.SharePoint.dll Using Microsoft.SharePoint.Administration SPWebApplication webApplication = SPWebApplication.Lookup(webAppUri); SPContentDatabaseCollection contentDBs = webApplication.ContentDatabases; ... if (contentDB.Status == SPObjectStatus.Online) { contentDB.Status = SPObjectStatus.Disabled; contentDB.Update(); } ... CreateContentDatabase(yearString) SPSite siteCollection = webApplication.Sites.Add(... Collection of databases Loop through collection and disable online databases Call routine (next slide) to crate DB Finally add new site collection
  • 21.Create Content Databases Programmatically private void CreateContentDatabase(string suffix) { SPContentDatabase copyFromDb = webApplication.ContentDatabases[0]; string prefix = "MyApp_ContentDB_"; string dbName = prefix + suffix; int warningCount = 0; int maximumSiteCount = 1; int status = 0; // 0=ready, 1=Offline SPContentDatabase contentDb = webApplication.ContentDatabases.Add(copyFromDb.Server, dbName, copyFromDb.Username, copyFromDb.Password, warningCount, maximumSiteCount, status); }
  • 22.DEMO Creating SharePoint Structure using API Site Collection Content Database
  • 23.Sample Solution Document repository Needed to scale to millions of documents Needed to be searched Needed to be maintainable by SQL Admins Stored files programmatically Solution Single web app Site collection per time period Each site collection had one site with one document library Use folders to handle scalability Combination of date and business division and document meta data
  • 24.MOSS Content Database Storage Estimates Year New Docs Total Docs Doc File Size (GB) Doc Lib Size (GB) Year 1 2,000,000 2,000,000 200 300 Year 2 2,300,000 4,300,000 430 650 Year 3 2,700,000 7,000,000 700 1000
  • 25.Search Index Storage Estimates Search Index files stored on the WFE Search DB stores additional information used by search service Year Total Docs Document Lib Size (GB) Index Size(GB) Search DB Size(GB) Year 1 2,000,000 200 15 60 Year 2 4,300,000 430 30 130 Year 3 7,000,000 700 50 200
  • 26.Content Database Partition Strategy Goals Optimize Availability or Manageability? Optimize Availability Backup/Restore recovery time Smaller (and quicker) is better Optimize Manageability Manageable number of databases Less is better
  • 27.Database Partition Strategy Database Size and Count Database Partition Strategy 1 Content Database per Year 1 Content Database per Quarter Average Size 340 GB 85 GB # of DB Year 1 1 4 # of DB Year 2 2 8 # of DB Year 3 3 12 DB Per Year 1 4
  • 28.Other Considerations for document storage RBS Remote BLOB Storage (SQL Server) EBS External BLOB Storage (SharePoint)
  • 29.Remote BLOB Store Provider Library Implementation Specification Store BLOBs on a Remote Blob Store (RBS) RBS Typically a separate box on same the network as the SQL Server.  Managed by SQL Server Integrity between the database records and the RBS external store is maintained Microsoft SQL Server 2008 Feature Pack, October 2008
  • 30.External BLOB Storage (EBS) in WSS EBS runs parallel to the site's SQL Server content database, which stores the site's structured data To coordinate the two data stores, you must implement a COM interface ISPExternalBinaryProvider Uses simple semantics to recognize file Save and Open commands Invokes redirection calls to BLOB store when it recognizes BLOB data streams You must install, register, and configure the EBS Provider on each WFE
  • 31.Resources EBS for WSS Kyle’s Blog (extensive coverage of his implementation) http://www.kyletillman.net/blog/post/SharePoint_External_Binary_Store-PartI.aspx Plan for MOSS Software Boundaries (Folder Structure) http://technet.microsoft.com/en-us/library/cc262787.aspx
  • 32.Future Tools Visual Studio 2010 Tools for SharePoint Server Explorer for SharePoint viewing Lists and other artifacts in SharePoint directly inside of Visual Studio Windows SharePoint Services Project (WSP file) Import to create a new solution Packaging explorer and packaging editor lets you structure the SharePoint features and WSP file that is created SharePoint speculation Will SharePoint v.Next utilize RBS or EBS for document storage? Maybe 3 rd party options?
  • 33.Summary Automating SQL Server Database Creation Planning for Document Content Storage Plan for MOSS Software Boundaries Search Indexing Backup/Restore and Availability Structuring Data in SharePoint Site Collections Content Databases Partitioning Data in SQL Server Sample Solution Other Considerations for Document Storage, Future...
  • 34.Thank you Questions? Talbott Crowell ThirdM.com http://TalbottC.spaces.Live.com

[8]ページ先頭

©2009-2025 Movatter.jp