Partager via


How to Configure the Catalog and Inventory Databases on Different SQL Servers

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

You can install the Commerce Server product catalog and inventory resources on different computers that are running SQL Server. Commerce Server uses SQL Server linked servers to join the resulting data. Although this configuration is possible, there will be some significant performance costs associated with doing this.

Note

For performance reasons, the Commerce Server Catalog and Inventory databases should reside on the same computer that is running SQL Server. The Commerce Server Catalog System frequently accesses inventory data from the inventory database, depending on your configuration. As a best practice, these databases should reside on the same computer that is running SQL Server.

To deploy the catalog and inventory databases on different computers that are running SQL Server, you must give Microsoft Distributed Transaction Coordinator (MSDTC) network access. You must do this on both computers.

Follow these steps to configure the SQL Server computers as linked servers.

For more information about how to link computers that are running SQL Server, see https://go.microsoft.com/fwlink/?LinkId=7420.

To add the catalog server as a linked server to the inventory server

  1. On the inventory server, open Microsoft SQL Server 2005 or SQL Server 2000, and then click SQL Server Management Studio or SQL Server Enterprise Manager.

  2. Select the inventory database, and then click New Query on the toolbar.

  3. In the query pane, type the following query:

    EXEC sp_addlinkedserver '<CatalogServerName>'
    

    Where <CatalogServerName> is the name of the computer that is the catalog server.

  4. Click Execute on the toolbar.

To add the inventory server as a linked server to the catalog server

  1. On the catalog server, open Microsoft SQL Server 2005 or SQL Server 2000, and then click SQL Server Management Studio or SQL Server Enterprise Manager.

  2. Select the catalog database, and then click New Query on the toolbar.

  3. In the query pane, type the following query:

    EXEC sp_addlinkedserver '<InventoryServerName>'
    

    Where <InventoryServerName> is the name of the computer that is the inventory server.

  4. Click Execute on the toolbar.

To verify network access for MSDTC

  1. Click Start, click Control Panel, double-click Administrative Tools, and then double-click Component Services.

  2. In the Component Services console, expand Component Services, expand Computers, right-click My Computer, and then click Properties.

  3. In the My Computer Properties dialog box, on the MSDTC tab, in the Transaction Configuration section, click Security Configuration.

  4. In the Security Configuration dialog box, in the Security Settings section, verify that Network DTC Access is selected.

  5. Click OK two times.

  6. Close the Component Services console.

See Also

Other Resources

Configuring the Database Servers