Microsoft KB Archive/292257

= How To Move the Commerce Server Databases from One SQL Server to Another =

Article ID: 292257

Article Last Modified on 7/13/2004

-

APPLIES TO


 * Microsoft Commerce Server 2002 Standard Edition
 * Microsoft Commerce Server 2000 Standard Edition

-



This article was previously published under Q292257



SUMMARY
It may be necessary to move the Commerce Server databases from one SQL Server to another. This article describes which Commerce Server databases can be moved and how to move those databases.



MORE INFORMATION
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.</li></ol> </li></ol>

Moving the _Commerce Database (or Catalog, Transaction, TransactionConfig, Campaign, Profile Databases)
<ol> Back up the database (or databases) on the source server, copy the backups to the new server, and then restore.</li> Modify the connection strings for each resource to point to the new server, depending on the type of resource. <ol style="list-style-type: lower-alpha;"> To change the connection string for a global resource

</li> Expand Commerce Server Manager, and then expand Global Resources.</li> Right-click the global resource to be configured, and then click Properties.</li> 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.</li> 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.</li></ol>

<ol style="list-style-type: lower-alpha;"> To change the connection string for a site resource

</li> Expand Commerce Server Manager, expand Commerce Sites, and then expand the site that you want to administer.</li> Expand Site Resources, right-click the site resource to be configured, and then click Properties.</li> 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.</li> 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.</li></ol>

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

<ol style="list-style-type: lower-alpha;"> Expand Commerce Server Manager, expand Global Resources, and then expand Profiles.</li> Expand Profile Catalog, and then expand Data Sources.</li> Right-Click ProfileService_SQLSource.</li> <li>Click Properties.</li> <li>Click the Partitions tab in the ProfileService_SQLSource property sheet.</li> <li>Select the SQLSource, and then click Edit.</li> <li>Click Edit in the property sheet.</li> <li>Enter your new server name.</li> <li>Click OK until the dialog box closes.</li></ol> </li></ol>

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.

<div class="references_section">