SlideShare a Scribd company logo
Migrating Databases and
Farm Configuration using
PowerShell
Anthony Obi
SQLSaturday #411 / SPSaturday Cambridge
12th September 2015
 Common Scenarios
 Common Approaches
 Power Shell Demos:
 Backup / Restore SQL Databases
 Export / Import Configuration
 Considerations / Gotcha’s
Agenda
Demo Environment
• SharePoint Server 2013 SP1 (+May 2015 CU)
• Single Web Application (+MySites Web App)
• Single Site Collection (+MySites)
• Managed Metadata Service Application
• User Profile Service Application
• SQL Server 2014 + SP1
• x2 SQL Instances
x2 SharePoint Servers
SQL2014
SP2013Srv1 SP2013Srv2
 Common Requirements:
 Backup -> Restore Data
 Export -> Import Configuration
 Synchronise Content and Configuration Between
Dev / Staging / Production SharePoint Farms
 SharePoint Farm Rebuilds:
 Domain Moves/Migrations
 SQL Infrastructure Moves/Upgrades
 Disaster Recovery (…possible option)
Common Scenarios
 SQL
 SQL Management Studio, SQL Agent Jobs
 PowerShell
 SQL Cmdlets, SharePoint Cmdlets (covered in demos)
 SharePoint
 Central Administration
 3rd Party - Various available…
Common Approaches
Demo 01
Content Database
‘SQL Backup and Restore’
PowerShell Example
Demo 02
Content Database
SharePoint Aware ‘SQL Restore’
PowerShell Example
 1. Run PowerShell from SQL Server:
 Requires ‘Remote PowerShell’ calls to SharePoint Server
 ‘Remote PowerShell Access & Permissions’ must be Pre-Configured
http://blogs.technet.com/b/anneste/archive/2014/09/17/how-to-enable-remote-
powershell-for-sharepoint-2013-for-non-administrators.aspx
 2. Run PowerShell from SharePoint Server:
 Requires ‘SQL Server Management Objects (SMO)’ installed on SharePoint
Server
https://msdn.microsoft.com/en-us/library/hh248032%28v=sql.120%29.aspx
 Any ‘FilePath Parameters’ are local to SQL Server (NOT SharePoint Server)
Approach Options
Post Restore Tasks
 Security: Move-SPUser Cmdlet
 Changed Domain Names
 Changed Account Names (User accounts, NOT Service Accounts)
http://technet.microsoft.com/en-us/library/ff607729%28v=office.15%29.aspx
 3rd Party Solutions
 Ensure Custom Solutions / Features Deployed (.wsp/ .app)
 SharePoint Infrastructure
 Managed Metadata – Site Navigation, Available Term Sets etc
 User Profile Service – Recreate Service Application(s), Connections etc.
 Search – Update Topology, Content Sources, Crawls etc
Managed Metadata Service Database
https://technet.microsoft.com/en-us/library/Cc263199.aspx#databases
Demo 03
SharePoint Service Application
Configuration Export / Import
PowerShell Example
Import Gotcha’s
(Issue 1)
If the commands fails with the following
error message
“You do not have permission to use the
bulk load statement”
The Service Application Service Account
requires the ‘BULK ADMIN’ SQL Role
Import Gotcha’s
(Issue 2)
If the commands fails with the following error message
“Cannot bulk load because the file "<FilePath><GUID>ECMGroup.dat” could not
be opened”
Store the Exported ‘.cab’ file on a Network Share.
When SQL and SharePoint are on different servers, the
‘Import-SPMetadataWebServicePartitionData’ PowerShell command needs to
perform tasks on both the SP server *and* the SQL server, so both servers need
access to the Export file.
User Profile Service Application
Databases
 1. Profile Database:
Used to store user profile information.
 2. Synchronization Database:
Used to store configuration and staging information for synchronizing profile data
from external sources such as the Active Directory Domain Services (AD DS).
 3. Social Database:
Used to store social tags and notes created by users. Each social tag and note is
associated with a profile ID.
https://technet.microsoft.com/en-us/library/Ee662538.aspx
User Profile Service Application
Databases
https://technet.microsoft.com/en-us/library/Cc263199.aspx#databases
Demo 04
Complex Service Application
Configuration Export / Import
PowerShell Example
 Security / Service Accounts
 Matching Domains
 Matching Accounts (SIDs not UsernamePassword)
 SharePoint Infrastructure
 Matching SharePoint Versions - Service Pack/Patch Levels
 Matching Service Applications
 Matching Web Applications / IIS Configurations
 Farm Infrastructure
 Compatible SQL Versions - Service Pack/Patch Levels
 Matching Server Names, Roles etc.
(use ‘SQL Aliases’ to perform SQL Server moves/upgrades)
 3rd Party Solutions
SQL Restore Considerations / Gotcha’s
(Part 1)
SQL Restore Considerations / Gotcha’s
(Part 2)
SP Configuration
Database
Service Application
Databases
(Various limitations: Search, UPS,
State, Word Automation, Usage)
Service Application
Databases
(Various limitations: Search, UPS,
State, Word Automation, Usage)
SP Content Databases SP Content Databases SP Content Databases
100% Infrastructure Match
(virtualised, scripted install)
Security Match
SP Infrastructure Match
Matching SharePoint Versions
- Service Pack/Patch Levels
About Me
 Independent SharePoint Consultant
Obilogic Ltd
 Working with SharePoint since Portal Server 2001
(10 years+)
 MCITP / MCTS SharePoint 2010
 Blog: http://community.obilogic.co.uk
 Twitter: @obilogic
 Email: aobi@obilogic.co.uk
Stick around for SWAG! (Prize drawing at 5.00 p.m)
 All our volunteers and organisers do not get paid for running SPS
SQLSaturday Cambridge and do it because they believe in the power of
community (or are just plain nuts).
Please show your gratitude for making this possible by:
 Giving them a hug
 Shaking their hand
 Saying thank you
 Coming back next year
 Consider getting your company to pay for a precon next year
 Spreading the word
 Getting involved yourself
 But most of all, by enjoying the day!
 Don’t forget to thank the sponsors for their support
 Thank the speakers for donating their time, energy and expenses
Stick around for SWAG! (Prize drawing at 5.00 p.m)
SQLCloud — XBox One!!! (make sure you know how to play the Jet Set Willy vendor competition!)
SQLCloud—Dark Side Of The Moon, The Wall and Wish You Were Here
Microsoft — MCP Voucher
Data Idols — Supercar Driving Experience
Profisee — Signed MDS Book and £50 Amazon Voucher
SQLSentry — Plan Explorer PRO License
Pyramid Analytics—Coffee Machine
Effektor — Lego Big Ben
Rencore — SPCAF Professional License (valued at $2099!)
Axioworks — Amazon Fire TV and £75 Amazon Voucher
DELL — Beats by Dr Dre Headphones
Redgate — DLM Workshop
Pluralsight — Annual Plus subscriptions
All Your Base Conference — 3 x Conference Tickets
VisualSP—Annual training subscription
Loads of books and much much more!!!
Thanks For Listening…

More Related Content

What's hot

John Burkholder: Disaster Recovery in SharePoint 2010
John Burkholder: Disaster Recovery in SharePoint 2010John Burkholder: Disaster Recovery in SharePoint 2010
John Burkholder: Disaster Recovery in SharePoint 2010SharePoint Saturday NY
 
Microsoft SQL Azure - Building Applications Using SQL Azure Presentation
Microsoft SQL Azure - Building Applications Using SQL Azure PresentationMicrosoft SQL Azure - Building Applications Using SQL Azure Presentation
Microsoft SQL Azure - Building Applications Using SQL Azure PresentationMicrosoft Private Cloud
 
Share point 2013 installation step by step
Share point 2013 installation step by stepShare point 2013 installation step by step
Share point 2013 installation step by stepprasslides
 
Tspug 2015 dirsync_amit_v_momentum
Tspug 2015 dirsync_amit_v_momentumTspug 2015 dirsync_amit_v_momentum
Tspug 2015 dirsync_amit_v_momentumamitvasu
 
John Burkholder: SharePoint 2010 in a multi tenant and hosted environment-nyc
John Burkholder: SharePoint 2010 in a multi tenant and hosted environment-nycJohn Burkholder: SharePoint 2010 in a multi tenant and hosted environment-nyc
John Burkholder: SharePoint 2010 in a multi tenant and hosted environment-nycSharePoint Saturday NY
 
Pitfalls of Migration to SharePoint 2010
Pitfalls of Migration to SharePoint 2010Pitfalls of Migration to SharePoint 2010
Pitfalls of Migration to SharePoint 2010Dan Usher
 
Using Visual Studio to Build SharePoint 2010 Solutions
Using Visual Studio to Build SharePoint 2010 SolutionsUsing Visual Studio to Build SharePoint 2010 Solutions
Using Visual Studio to Build SharePoint 2010 SolutionsRandy Williams
 
SharePoint 2007 Presentation
SharePoint 2007 PresentationSharePoint 2007 Presentation
SharePoint 2007 PresentationAjay Jain
 
10 razones para pasarse a SharePoint 2010
10 razones para pasarse a SharePoint 201010 razones para pasarse a SharePoint 2010
10 razones para pasarse a SharePoint 2010Raona
 
Best Practices to SharePoint Architecture Fundamentals NZ & AUS
Best Practices to SharePoint Architecture Fundamentals NZ & AUSBest Practices to SharePoint Architecture Fundamentals NZ & AUS
Best Practices to SharePoint Architecture Fundamentals NZ & AUSguest7c2e070
 
Advanced BCS - Business Data Connectivity Models and Custom Connectors
Advanced BCS - Business Data Connectivity Models and Custom ConnectorsAdvanced BCS - Business Data Connectivity Models and Custom Connectors
Advanced BCS - Business Data Connectivity Models and Custom ConnectorsCorey Roth
 
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshop
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshopIntroduction to PowerShell - Be a PowerShell Hero - SPFest workshop
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshopMichael Blumenthal (Microsoft MVP)
 
Changes in SharePoint 2010 from MOSS 2007
Changes in SharePoint 2010 from MOSS 2007Changes in SharePoint 2010 from MOSS 2007
Changes in SharePoint 2010 from MOSS 2007Michael Noel
 
O365con14 - sharepoint 2013 and office 365 upgrade and migration
O365con14 - sharepoint 2013 and office 365 upgrade and migrationO365con14 - sharepoint 2013 and office 365 upgrade and migration
O365con14 - sharepoint 2013 and office 365 upgrade and migrationNCCOMMS
 
SharePoint 2010 Upgrade Drill Down
SharePoint 2010 Upgrade Drill DownSharePoint 2010 Upgrade Drill Down
SharePoint 2010 Upgrade Drill DownJoel Oleson
 
Kathryn Birstein: SharePoint 2010 Business Intelligence-Brining It All Together
Kathryn Birstein: SharePoint 2010 Business Intelligence-Brining It All TogetherKathryn Birstein: SharePoint 2010 Business Intelligence-Brining It All Together
Kathryn Birstein: SharePoint 2010 Business Intelligence-Brining It All TogetherSharePoint Saturday NY
 

What's hot (20)

John Burkholder: Disaster Recovery in SharePoint 2010
John Burkholder: Disaster Recovery in SharePoint 2010John Burkholder: Disaster Recovery in SharePoint 2010
John Burkholder: Disaster Recovery in SharePoint 2010
 
Microsoft SQL Azure - Building Applications Using SQL Azure Presentation
Microsoft SQL Azure - Building Applications Using SQL Azure PresentationMicrosoft SQL Azure - Building Applications Using SQL Azure Presentation
Microsoft SQL Azure - Building Applications Using SQL Azure Presentation
 
Share point 2013 installation step by step
Share point 2013 installation step by stepShare point 2013 installation step by step
Share point 2013 installation step by step
 
Tspug 2015 dirsync_amit_v_momentum
Tspug 2015 dirsync_amit_v_momentumTspug 2015 dirsync_amit_v_momentum
Tspug 2015 dirsync_amit_v_momentum
 
Download It
Download ItDownload It
Download It
 
John Burkholder: SharePoint 2010 in a multi tenant and hosted environment-nyc
John Burkholder: SharePoint 2010 in a multi tenant and hosted environment-nycJohn Burkholder: SharePoint 2010 in a multi tenant and hosted environment-nyc
John Burkholder: SharePoint 2010 in a multi tenant and hosted environment-nyc
 
Pitfalls of Migration to SharePoint 2010
Pitfalls of Migration to SharePoint 2010Pitfalls of Migration to SharePoint 2010
Pitfalls of Migration to SharePoint 2010
 
Using Visual Studio to Build SharePoint 2010 Solutions
Using Visual Studio to Build SharePoint 2010 SolutionsUsing Visual Studio to Build SharePoint 2010 Solutions
Using Visual Studio to Build SharePoint 2010 Solutions
 
SUG Bangalore - Kick Off Session
SUG Bangalore - Kick Off SessionSUG Bangalore - Kick Off Session
SUG Bangalore - Kick Off Session
 
SharePoint 2007 Presentation
SharePoint 2007 PresentationSharePoint 2007 Presentation
SharePoint 2007 Presentation
 
10 razones para pasarse a SharePoint 2010
10 razones para pasarse a SharePoint 201010 razones para pasarse a SharePoint 2010
10 razones para pasarse a SharePoint 2010
 
Best Practices to SharePoint Architecture Fundamentals NZ & AUS
Best Practices to SharePoint Architecture Fundamentals NZ & AUSBest Practices to SharePoint Architecture Fundamentals NZ & AUS
Best Practices to SharePoint Architecture Fundamentals NZ & AUS
 
Advanced BCS - Business Data Connectivity Models and Custom Connectors
Advanced BCS - Business Data Connectivity Models and Custom ConnectorsAdvanced BCS - Business Data Connectivity Models and Custom Connectors
Advanced BCS - Business Data Connectivity Models and Custom Connectors
 
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshop
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshopIntroduction to PowerShell - Be a PowerShell Hero - SPFest workshop
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshop
 
Changes in SharePoint 2010 from MOSS 2007
Changes in SharePoint 2010 from MOSS 2007Changes in SharePoint 2010 from MOSS 2007
Changes in SharePoint 2010 from MOSS 2007
 
Share Point Object Model
Share Point Object ModelShare Point Object Model
Share Point Object Model
 
O365con14 - sharepoint 2013 and office 365 upgrade and migration
O365con14 - sharepoint 2013 and office 365 upgrade and migrationO365con14 - sharepoint 2013 and office 365 upgrade and migration
O365con14 - sharepoint 2013 and office 365 upgrade and migration
 
SharePoint 2010 Upgrade Drill Down
SharePoint 2010 Upgrade Drill DownSharePoint 2010 Upgrade Drill Down
SharePoint 2010 Upgrade Drill Down
 
0065 using sequelink
0065 using sequelink0065 using sequelink
0065 using sequelink
 
Kathryn Birstein: SharePoint 2010 Business Intelligence-Brining It All Together
Kathryn Birstein: SharePoint 2010 Business Intelligence-Brining It All TogetherKathryn Birstein: SharePoint 2010 Business Intelligence-Brining It All Together
Kathryn Birstein: SharePoint 2010 Business Intelligence-Brining It All Together
 

Similar to SQL Saturday 411 - Migrating SharePoint Databases and Farm Configuration Using PowerShell

SharePoint 2010 - IT Platform upgrade and Management
SharePoint 2010 - IT Platform upgrade and ManagementSharePoint 2010 - IT Platform upgrade and Management
SharePoint 2010 - IT Platform upgrade and ManagementChris McNulty
 
NZSPC 2013 - Upgrading to SharePoint 2013
NZSPC 2013 - Upgrading to SharePoint 2013NZSPC 2013 - Upgrading to SharePoint 2013
NZSPC 2013 - Upgrading to SharePoint 2013Michael Noel
 
SPCSEA 2013 - Upgrading to SharePoint 2013
SPCSEA 2013 - Upgrading to SharePoint 2013SPCSEA 2013 - Upgrading to SharePoint 2013
SPCSEA 2013 - Upgrading to SharePoint 2013Michael Noel
 
Upgrade tosharepoint2013a mthodicalapproachmn
Upgrade tosharepoint2013a mthodicalapproachmnUpgrade tosharepoint2013a mthodicalapproachmn
Upgrade tosharepoint2013a mthodicalapproachmnVickey Bird
 
Enter The Dragon - SQL 2014 on Server Core - SQLSaturday #341 Porto Edition
Enter The Dragon - SQL 2014 on Server Core - SQLSaturday #341 Porto EditionEnter The Dragon - SQL 2014 on Server Core - SQLSaturday #341 Porto Edition
Enter The Dragon - SQL 2014 on Server Core - SQLSaturday #341 Porto EditionMark Broadbent
 
Exam 70-488 Developing Microsoft SharePoint Server 2013 Core Solutions Learni...
Exam 70-488 Developing Microsoft SharePoint Server 2013 Core Solutions Learni...Exam 70-488 Developing Microsoft SharePoint Server 2013 Core Solutions Learni...
Exam 70-488 Developing Microsoft SharePoint Server 2013 Core Solutions Learni...Mahmoud Hamed Mahmoud
 
Spsdc what's new in share point 2013 workflow
Spsdc   what's new in share point 2013 workflowSpsdc   what's new in share point 2013 workflow
Spsdc what's new in share point 2013 workflowamitvasu
 
Configuring SharePoint Server 2013 environment for Business Intelligence Plat...
Configuring SharePoint Server 2013 environment for Business Intelligence Plat...Configuring SharePoint Server 2013 environment for Business Intelligence Plat...
Configuring SharePoint Server 2013 environment for Business Intelligence Plat...Joseph Lopez
 
2013 - Back to the Future with Client/Server Development
2013 - Back to the Future with Client/Server Development 2013 - Back to the Future with Client/Server Development
2013 - Back to the Future with Client/Server Development Chris O'Connor
 
Enter the Dragon - SQL 2014 on Server Core PASS Summit 2014 Edition
Enter the Dragon -  SQL 2014 on Server Core PASS Summit 2014 EditionEnter the Dragon -  SQL 2014 on Server Core PASS Summit 2014 Edition
Enter the Dragon - SQL 2014 on Server Core PASS Summit 2014 EditionMark Broadbent
 
Deploying and Managing PowerPivot for SharePoint
Deploying and Managing PowerPivot for SharePointDeploying and Managing PowerPivot for SharePoint
Deploying and Managing PowerPivot for SharePointDenny Lee
 
SharePoint 2010 Development for ASP.NET Developers - SharePoint Saturday Hous...
SharePoint 2010 Development for ASP.NET Developers - SharePoint Saturday Hous...SharePoint 2010 Development for ASP.NET Developers - SharePoint Saturday Hous...
SharePoint 2010 Development for ASP.NET Developers - SharePoint Saturday Hous...Corey Roth
 
Practical SharePoint 2013 Development Environment
Practical SharePoint 2013  Development EnvironmentPractical SharePoint 2013  Development Environment
Practical SharePoint 2013 Development EnvironmentNetwoven Inc.
 
2013.06.08 SPUG PT - Novidades Workflow em SharePoint 2013
2013.06.08 SPUG PT - Novidades Workflow em SharePoint 20132013.06.08 SPUG PT - Novidades Workflow em SharePoint 2013
2013.06.08 SPUG PT - Novidades Workflow em SharePoint 2013Miguel Isidoro
 
SharePoint Intersections - SP09 - Introduction to SharePoint 2013 for IT Pros
SharePoint Intersections - SP09 - Introduction to SharePoint 2013 for IT ProsSharePoint Intersections - SP09 - Introduction to SharePoint 2013 for IT Pros
SharePoint Intersections - SP09 - Introduction to SharePoint 2013 for IT ProsDan Usher
 
SharePoint 2010 Architecture - TechEd Brasil 2010
SharePoint 2010 Architecture - TechEd Brasil 2010SharePoint 2010 Architecture - TechEd Brasil 2010
SharePoint 2010 Architecture - TechEd Brasil 2010Michael Noel
 
Chris McNulty: ECM/WCM Planning, Implementation and Migration Strategies
Chris McNulty: ECM/WCM Planning, Implementation and Migration StrategiesChris McNulty: ECM/WCM Planning, Implementation and Migration Strategies
Chris McNulty: ECM/WCM Planning, Implementation and Migration StrategiesSharePoint Saturday NY
 
Heavy Metal PowerPivot Remastered
Heavy Metal PowerPivot RemasteredHeavy Metal PowerPivot Remastered
Heavy Metal PowerPivot RemasteredJason Himmelstein
 
SharePoint 2010 High Availability - SPC2C
SharePoint 2010 High Availability - SPC2CSharePoint 2010 High Availability - SPC2C
SharePoint 2010 High Availability - SPC2CMichael Noel
 

Similar to SQL Saturday 411 - Migrating SharePoint Databases and Farm Configuration Using PowerShell (20)

SharePoint 2010 - IT Platform upgrade and Management
SharePoint 2010 - IT Platform upgrade and ManagementSharePoint 2010 - IT Platform upgrade and Management
SharePoint 2010 - IT Platform upgrade and Management
 
NZSPC 2013 - Upgrading to SharePoint 2013
NZSPC 2013 - Upgrading to SharePoint 2013NZSPC 2013 - Upgrading to SharePoint 2013
NZSPC 2013 - Upgrading to SharePoint 2013
 
SPCSEA 2013 - Upgrading to SharePoint 2013
SPCSEA 2013 - Upgrading to SharePoint 2013SPCSEA 2013 - Upgrading to SharePoint 2013
SPCSEA 2013 - Upgrading to SharePoint 2013
 
Upgrade tosharepoint2013a mthodicalapproachmn
Upgrade tosharepoint2013a mthodicalapproachmnUpgrade tosharepoint2013a mthodicalapproachmn
Upgrade tosharepoint2013a mthodicalapproachmn
 
Enter The Dragon - SQL 2014 on Server Core - SQLSaturday #341 Porto Edition
Enter The Dragon - SQL 2014 on Server Core - SQLSaturday #341 Porto EditionEnter The Dragon - SQL 2014 on Server Core - SQLSaturday #341 Porto Edition
Enter The Dragon - SQL 2014 on Server Core - SQLSaturday #341 Porto Edition
 
Exam 70-488 Developing Microsoft SharePoint Server 2013 Core Solutions Learni...
Exam 70-488 Developing Microsoft SharePoint Server 2013 Core Solutions Learni...Exam 70-488 Developing Microsoft SharePoint Server 2013 Core Solutions Learni...
Exam 70-488 Developing Microsoft SharePoint Server 2013 Core Solutions Learni...
 
Spsdc what's new in share point 2013 workflow
Spsdc   what's new in share point 2013 workflowSpsdc   what's new in share point 2013 workflow
Spsdc what's new in share point 2013 workflow
 
Configuring SharePoint Server 2013 environment for Business Intelligence Plat...
Configuring SharePoint Server 2013 environment for Business Intelligence Plat...Configuring SharePoint Server 2013 environment for Business Intelligence Plat...
Configuring SharePoint Server 2013 environment for Business Intelligence Plat...
 
2013 - Back to the Future with Client/Server Development
2013 - Back to the Future with Client/Server Development 2013 - Back to the Future with Client/Server Development
2013 - Back to the Future with Client/Server Development
 
Enter the Dragon - SQL 2014 on Server Core PASS Summit 2014 Edition
Enter the Dragon -  SQL 2014 on Server Core PASS Summit 2014 EditionEnter the Dragon -  SQL 2014 on Server Core PASS Summit 2014 Edition
Enter the Dragon - SQL 2014 on Server Core PASS Summit 2014 Edition
 
Deploying and Managing PowerPivot for SharePoint
Deploying and Managing PowerPivot for SharePointDeploying and Managing PowerPivot for SharePoint
Deploying and Managing PowerPivot for SharePoint
 
SharePoint 2010 Development for ASP.NET Developers - SharePoint Saturday Hous...
SharePoint 2010 Development for ASP.NET Developers - SharePoint Saturday Hous...SharePoint 2010 Development for ASP.NET Developers - SharePoint Saturday Hous...
SharePoint 2010 Development for ASP.NET Developers - SharePoint Saturday Hous...
 
Practical SharePoint 2013 Development Environment
Practical SharePoint 2013  Development EnvironmentPractical SharePoint 2013  Development Environment
Practical SharePoint 2013 Development Environment
 
Resume
ResumeResume
Resume
 
2013.06.08 SPUG PT - Novidades Workflow em SharePoint 2013
2013.06.08 SPUG PT - Novidades Workflow em SharePoint 20132013.06.08 SPUG PT - Novidades Workflow em SharePoint 2013
2013.06.08 SPUG PT - Novidades Workflow em SharePoint 2013
 
SharePoint Intersections - SP09 - Introduction to SharePoint 2013 for IT Pros
SharePoint Intersections - SP09 - Introduction to SharePoint 2013 for IT ProsSharePoint Intersections - SP09 - Introduction to SharePoint 2013 for IT Pros
SharePoint Intersections - SP09 - Introduction to SharePoint 2013 for IT Pros
 
SharePoint 2010 Architecture - TechEd Brasil 2010
SharePoint 2010 Architecture - TechEd Brasil 2010SharePoint 2010 Architecture - TechEd Brasil 2010
SharePoint 2010 Architecture - TechEd Brasil 2010
 
Chris McNulty: ECM/WCM Planning, Implementation and Migration Strategies
Chris McNulty: ECM/WCM Planning, Implementation and Migration StrategiesChris McNulty: ECM/WCM Planning, Implementation and Migration Strategies
Chris McNulty: ECM/WCM Planning, Implementation and Migration Strategies
 
Heavy Metal PowerPivot Remastered
Heavy Metal PowerPivot RemasteredHeavy Metal PowerPivot Remastered
Heavy Metal PowerPivot Remastered
 
SharePoint 2010 High Availability - SPC2C
SharePoint 2010 High Availability - SPC2CSharePoint 2010 High Availability - SPC2C
SharePoint 2010 High Availability - SPC2C
 

Recently uploaded

Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyJohn Staveley
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Product School
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Jeffrey Haguewood
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3DianaGray10
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Alison B. Lowndes
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor TurskyiFwdays
 
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀DianaGray10
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeCzechDreamin
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesBhaskar Mitra
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxDavid Michel
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...Product School
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIES VE
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...Product School
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersSafe Software
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...Product School
 
In-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT ProfessionalsIn-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT ProfessionalsExpeed Software
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsPaul Groth
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Tobias Schneck
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutesconfluent
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaRTTS
 

Recently uploaded (20)

Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
In-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT ProfessionalsIn-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT Professionals
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 

SQL Saturday 411 - Migrating SharePoint Databases and Farm Configuration Using PowerShell

  • 1. Migrating Databases and Farm Configuration using PowerShell Anthony Obi SQLSaturday #411 / SPSaturday Cambridge 12th September 2015
  • 2.  Common Scenarios  Common Approaches  Power Shell Demos:  Backup / Restore SQL Databases  Export / Import Configuration  Considerations / Gotcha’s Agenda
  • 3. Demo Environment • SharePoint Server 2013 SP1 (+May 2015 CU) • Single Web Application (+MySites Web App) • Single Site Collection (+MySites) • Managed Metadata Service Application • User Profile Service Application • SQL Server 2014 + SP1 • x2 SQL Instances x2 SharePoint Servers SQL2014 SP2013Srv1 SP2013Srv2
  • 4.  Common Requirements:  Backup -> Restore Data  Export -> Import Configuration  Synchronise Content and Configuration Between Dev / Staging / Production SharePoint Farms  SharePoint Farm Rebuilds:  Domain Moves/Migrations  SQL Infrastructure Moves/Upgrades  Disaster Recovery (…possible option) Common Scenarios
  • 5.  SQL  SQL Management Studio, SQL Agent Jobs  PowerShell  SQL Cmdlets, SharePoint Cmdlets (covered in demos)  SharePoint  Central Administration  3rd Party - Various available… Common Approaches
  • 6. Demo 01 Content Database ‘SQL Backup and Restore’ PowerShell Example
  • 7. Demo 02 Content Database SharePoint Aware ‘SQL Restore’ PowerShell Example
  • 8.  1. Run PowerShell from SQL Server:  Requires ‘Remote PowerShell’ calls to SharePoint Server  ‘Remote PowerShell Access & Permissions’ must be Pre-Configured http://blogs.technet.com/b/anneste/archive/2014/09/17/how-to-enable-remote- powershell-for-sharepoint-2013-for-non-administrators.aspx  2. Run PowerShell from SharePoint Server:  Requires ‘SQL Server Management Objects (SMO)’ installed on SharePoint Server https://msdn.microsoft.com/en-us/library/hh248032%28v=sql.120%29.aspx  Any ‘FilePath Parameters’ are local to SQL Server (NOT SharePoint Server) Approach Options
  • 9. Post Restore Tasks  Security: Move-SPUser Cmdlet  Changed Domain Names  Changed Account Names (User accounts, NOT Service Accounts) http://technet.microsoft.com/en-us/library/ff607729%28v=office.15%29.aspx  3rd Party Solutions  Ensure Custom Solutions / Features Deployed (.wsp/ .app)  SharePoint Infrastructure  Managed Metadata – Site Navigation, Available Term Sets etc  User Profile Service – Recreate Service Application(s), Connections etc.  Search – Update Topology, Content Sources, Crawls etc
  • 10. Managed Metadata Service Database https://technet.microsoft.com/en-us/library/Cc263199.aspx#databases
  • 11. Demo 03 SharePoint Service Application Configuration Export / Import PowerShell Example
  • 12. Import Gotcha’s (Issue 1) If the commands fails with the following error message “You do not have permission to use the bulk load statement” The Service Application Service Account requires the ‘BULK ADMIN’ SQL Role
  • 13. Import Gotcha’s (Issue 2) If the commands fails with the following error message “Cannot bulk load because the file "<FilePath><GUID>ECMGroup.dat” could not be opened” Store the Exported ‘.cab’ file on a Network Share. When SQL and SharePoint are on different servers, the ‘Import-SPMetadataWebServicePartitionData’ PowerShell command needs to perform tasks on both the SP server *and* the SQL server, so both servers need access to the Export file.
  • 14. User Profile Service Application Databases  1. Profile Database: Used to store user profile information.  2. Synchronization Database: Used to store configuration and staging information for synchronizing profile data from external sources such as the Active Directory Domain Services (AD DS).  3. Social Database: Used to store social tags and notes created by users. Each social tag and note is associated with a profile ID. https://technet.microsoft.com/en-us/library/Ee662538.aspx
  • 15. User Profile Service Application Databases https://technet.microsoft.com/en-us/library/Cc263199.aspx#databases
  • 16. Demo 04 Complex Service Application Configuration Export / Import PowerShell Example
  • 17.  Security / Service Accounts  Matching Domains  Matching Accounts (SIDs not UsernamePassword)  SharePoint Infrastructure  Matching SharePoint Versions - Service Pack/Patch Levels  Matching Service Applications  Matching Web Applications / IIS Configurations  Farm Infrastructure  Compatible SQL Versions - Service Pack/Patch Levels  Matching Server Names, Roles etc. (use ‘SQL Aliases’ to perform SQL Server moves/upgrades)  3rd Party Solutions SQL Restore Considerations / Gotcha’s (Part 1)
  • 18. SQL Restore Considerations / Gotcha’s (Part 2) SP Configuration Database Service Application Databases (Various limitations: Search, UPS, State, Word Automation, Usage) Service Application Databases (Various limitations: Search, UPS, State, Word Automation, Usage) SP Content Databases SP Content Databases SP Content Databases 100% Infrastructure Match (virtualised, scripted install) Security Match SP Infrastructure Match Matching SharePoint Versions - Service Pack/Patch Levels
  • 19. About Me  Independent SharePoint Consultant Obilogic Ltd  Working with SharePoint since Portal Server 2001 (10 years+)  MCITP / MCTS SharePoint 2010  Blog: http://community.obilogic.co.uk  Twitter: @obilogic  Email: aobi@obilogic.co.uk
  • 20.
  • 21. Stick around for SWAG! (Prize drawing at 5.00 p.m)  All our volunteers and organisers do not get paid for running SPS SQLSaturday Cambridge and do it because they believe in the power of community (or are just plain nuts). Please show your gratitude for making this possible by:  Giving them a hug  Shaking their hand  Saying thank you  Coming back next year  Consider getting your company to pay for a precon next year  Spreading the word  Getting involved yourself  But most of all, by enjoying the day!  Don’t forget to thank the sponsors for their support  Thank the speakers for donating their time, energy and expenses
  • 22. Stick around for SWAG! (Prize drawing at 5.00 p.m) SQLCloud — XBox One!!! (make sure you know how to play the Jet Set Willy vendor competition!) SQLCloud—Dark Side Of The Moon, The Wall and Wish You Were Here Microsoft — MCP Voucher Data Idols — Supercar Driving Experience Profisee — Signed MDS Book and £50 Amazon Voucher SQLSentry — Plan Explorer PRO License Pyramid Analytics—Coffee Machine Effektor — Lego Big Ben Rencore — SPCAF Professional License (valued at $2099!) Axioworks — Amazon Fire TV and £75 Amazon Voucher DELL — Beats by Dr Dre Headphones Redgate — DLM Workshop Pluralsight — Annual Plus subscriptions All Your Base Conference — 3 x Conference Tickets VisualSP—Annual training subscription Loads of books and much much more!!!