Showing posts with label Nintex. Show all posts
Showing posts with label Nintex. Show all posts

Thursday, June 21, 2012

SharePoint 2010 - Move Nintex Workflow Databases between SharePoint farms

Some months ago my project manager came to me and asked if it is possible to move a content database from production farm to development farm. Our developers needed real content to test different extensions. I answered YES, with a big smile. BUT the I recognized, that we use Nintex Workflows. If I would only copy the SharePoint content database, all Nintex workflows would be in a inconsistent state and not functioning on development/integration farm. So I stopped smiling and started searching for a solution.

First of all: Nintex published some whitepapers about this issue.

http://connect.nintex.com/files/folders/tutorials_and_how_tos_nw2010/entry20197.aspx
 http://connect.nintex.com/files/folders/technical_and_white_papers_nw2010/entry17226.aspx

Based on this inputs I created a approch to move our content and Nintex Workflow databases:

Production:
  1. Backup SharePoint Content Database
  2. Backup Nintex Database
  3. Both have to be in Sync. No Workflow changes while Backup

Development/Integration:
  1. Restore SharePoint Content Database
  2. Delete existing Nintex Database
  3. Restore Nintex Database
  4. Mount SharePoint Database
  5. Perform IIS Reset
  6. Change license key to development key
 
HINT: I automated the database backup/restore process for repeating actions with MS SQL SSIS. It allows you to prepare a package with all parameters and actions required for the movement.

At the end you get a "click once" Nintex database deployment between farms! Quite nice..