With Dynamics CRM 2011 we can now deploy update rollups without updating the Organization databases, the advantages are:
- Deploy Update Rollups per Organization and not to the entire Environment.
- Test binaries before updating the database
By default it updates the database as you install an update rollup, to stop it from automatically update the databases, run the following powershell script:
Open PowerShell copy+paste the below commands; on the last line hit enter:
Add-PSSnapin Microsoft.Crm.PowerShell
$setting = New-Object "Microsoft.Xrm.Sdk.Deployment.ConfigurationEntity"
$setting.LogicalName = "Deployment"
$setting.Attributes = New-Object "Microsoft.Xrm.Sdk.Deployment.AttributeCollection"
$attribute = New-Object "System.Collections.Generic.KeyValuePair[String, Object]" ("AutomaticallyInstallDatabaseUpdates", 0)
$setting.Attributes.Add($attribute)
Set-CrmAdvancedSetting -Entity $setting
Note: what the powershell script does, sets to 0 the database field AutomaticallyInstallDatabaseUpdates on the DeploymentProperties table of the MSCRM_CONFIG database.
Now if you Install the latest rollup; when you open deployment manager the column 'version' should still show the previous RU version for all organizations; to update the database for a specific organization right click the organization you want to update
and click Update:
If you get the below error, stop the Asynchronous service and try again.
After you update the organization, you now have one organization with RU6 and other with RU10:
Hope was helpful.