I needed to move the set of Commerce Server databases from one server to another, so I developed and tested this procedure.
- Script the database users to file. Our site is using domain users, so I performed this step first to keep the users in sync with a backup/restore of the databases.
- Backup each of the Commerce Server databases:
- Marketing
- Marketing_Lists
- ProductCatalog
- Profiles
- TransactionConfig
- Transactions
- MSCS_Admin
- MSCS_CatalogScratch
- Marketing
- Transfer the scripts and backup files to the new server.
- Run user scripts against the new server
- Restore each database on the new server
- On the web server, open Commerce Server Manager to change connection strings:
- Admin Database:
- Click the Commerce Server Manager node
- Click the Administration Database link in the right panel
- Change the Connection String, click OK
- Click the Commerce Server Manager node
- Profiles
- Expand this node:
Global Resources/Profiles - Right-click and change the following 3 connection strings:
s_BizDataStoreConnectionString
s_CommerceProviderConnectionString
s_ProfileServiceConnectionString - Profile Database
- Expand this node:
Global Resources/Profiles/ProfileCatalog/DataSources/ProfileService_SQLSource/Partitions
- Right-click SQLSource in the right pane and choose properties
- Change the Connection String, click OK
- Expand this node:
- Inventory Database
- Expand this node:
Commerce Sites/CSharpSite/Site Resources/Inventory
- Right-click Inventory Database in the right pane and choose properties
- Change the Connection String, click OK
- Expand this node:
- Marketing Database
- Expand this node:
Commerce Sites/CSharpSite/Site Resources/Marketing
- Right-click Mailing List Connection String in the right pane and choose properties
- Change the Connection String, click OK
- iv. Right-click Marketing Database Connection String in the right pane and choose properties
- Change the Connection String, click OK
- Expand this node:
- Product Catalog
- Expand this node:
Commerce Sites/CSharpSite/Site Resources/Product Catalog
- Right-click Catalog Database in the right pane and choose properties
- Change the Connection String, click OK
- Expand this node:
- Transaction Config
- Expand this node:
Commerce Sites/CSharpSite/Site Resources/Transaction Config
- Right-click Transactions Config Database in the right pane and choose properties
- Change the Connection String, click OK
- Expand this node:
- Transactions
- Expand this node:
Commerce Sites/CSharpSite/Site Resources/Transaction Config
- Right-click Transactions Database in the right pane and choose properties
- Change the Connection String, click OK
- Expand this node:
- Admin Database:
- Change connection strings in the web.config for site (if any using API calls)
- Restart IIS