In Microsoft Commerce Server 2007 or in Microsoft Commerce Server 2009, you select the Replace import type to perform a catalog import. If the catalog data exists, the import takes a very long time to be completed.
For example, if you import a new catalog, the import takes about 10 minutes. If you use the Replace import type to import the same catalog file again after the first import, the import takes an hour to be completed.
The issue occurs because ctlg_RepairCatalogsAfterImport selects an inefficient query plan for the catalog import process.
A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.
If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.
Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website:
Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.
You must have one of the following versions installed:
Microsoft Commerce Server 2007 SP2
Microsoft Commerce Server 2009
You do not have to restart the computer. However, you must restart Internet Information Services (IIS) and the Commerce Server Catalog Import Host COM+ application after you apply this hotfix. To restart IIS, at a command prompt, type the following command, and then press ENTER:
Note This option stops and then restarts all IIS services that are running.
This hotfix does not replace a previously released hotfix.
The global version of this hotfix uses a Microsoft Windows Installer package to install the hotfix. The dates and the times for these files are listed in Coordinated Universal Time (UTC) in the following table. When you view the file information, the date is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
For Microsoft Commerce Server 2007
For Microsoft Commerce Server 2009
Hotfix installation information
After you extract the hotfix package, you obtain the following files:
For Commerce Server 2007:
Install the CommerceServer2007SP2-KB2513798-ENU.exe file to update the Catalogcreate.sql file.
For Commerce Server 2009:
Install the CommerceServer2007SP3-KB2513798-ENU.exe file to update the Catalogcreate.sql file.
You have to install the appropriate hotfix to make sure that this issue does not occur for new catalog databases.
Additionally, you must run the KB2513798.sql file against the existing catalog databases to update their stored procedures.
For more information about how to import catalogs in Commerce Server, visit the following MSDN webpage:
Microsoft Commerce Server 2007 Developer Edition, Microsoft Commerce Server 2007 Enterprise Edition, Microsoft Commerce Server 2007 Service Pack 1, Microsoft Commerce Server 2007 Standard Edition, Microsoft Commerce Server 2009 Enterprise, Microsoft Commerce Server 2009 Standard