A Commerce Server installation may contain several databases, depending on the number of sites installed and options configured. After Commerce Server is installed, it may be necessary to move the databases to a new server.
All databases, except for the Data Warehouse database (or databases) can be moved to a new server. For the Data Warehouse database, you must install a new Data Warehouse resource for your site and re-import your data.
To move the databases to a new server, it is recommended that you back up your existing database by using the SQL Server Enterprise Manager, and then to restore the database to your new server. There are additional steps, depending on the database that is being moved.
Moving MSCS_Admin Database
- Start SQL Enterprise Manager.
- Back up MSCS_Admin from the source server, copy the backup to the new server, and then restore.
- Modify the connection string for the Administration Database to point to the new server. To do so, follow these steps:
- Right-click Commerce Server Manager, and then click Properties. The Commerce Server Manager Properties dialog box appears.
- On the Administration Database tab, click Modify. The Data Link Properties dialog box appears.
- After making the necessary changes in the Data Link Properties dialog box, click OK.
- For information about how to complete the Data Link Properties dialog box, click Help in the Data Link Properties dialog box to open the Microsoft Data Link Help file.
NOTE: After you change a property value in Commerce Server Manager, you must unload the IIS applications on the site from memory on each Web server in order for the change to take effect.
Moving the _Commerce Database (or Catalog, Transaction, TransactionConfig, Campaign, Profile Databases)
- Back up the database (or databases) on the source server, copy the backups to the new server, and then restore.
- Modify the connection strings for each resource to point to the new server, depending on the type of resource.
- To change the connection string for a global resource
- Expand Commerce Server Manager, and then expand Global Resources.
- Right-click the global resource to be configured, and then click Properties.
- Click the Connection Strings tab to configure the connection strings for the global resource, select a connection string, and then click Modify. The Data Link Properties dialog box appears.
- After making the necessary changes in the Data Link Properties dialog box, click OK.
NOTE: After you change a property value in Commerce Server Manager, you must unload the IIS applications on the site from memory on each Web server in order for the change to take effect.
- To change the connection string for a site resource
- Expand Commerce Server Manager, expand Commerce Sites, and then expand the site that you want to administer.
- Expand Site Resources, right-click the site resource to be configured, and then click Properties.
- In the Properties dialog box, select the Connection Strings tab, select a connection string, and then click Modify. The Data Link Properties dialog box appears.
- After making the necessary changes in the Data Link Properties dialog box, click OK.
NOTE: After you change a property value in Commerce Server Manager, you must unload the IIS applications on the site from memory on each Web server in order for the change to take effect.
If you have moved a Profile database, you must also modify the connection strings for each of your Data Sources that have moved.
To modify the Profile Database Data Source connection strings
- Expand Commerce Server Manager, expand Global Resources, and then expand Profiles.
- Expand Profile Catalog, and then expand Data Sources.
- Right-Click ProfileService_SQLSource.
- Click Properties.
- Click the Partitions tab in the ProfileService_SQLSource property sheet.
- Select the SQLSource, and then click Edit.
- Click Edit in the property sheet.
- Enter your new server name.
- Click OK until the dialog box closes.
After the Databases Are Moved
Click
Start, click
Run, and then run IISRESET to restart the IIS services. This is necessary to load the new connection strings from the Admin database.