FIX: You obtain unexpected rows when you run a query against a virtual catalog in Commerce Server 2007

Article translations Article translations
Article ID: 975116 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

Consider the following scenerio. You use the ctlg_getResults_for_SingleCatalog stored procedure to search a virtual catalog against the product catalog database in Microsoft Commerce Server 2007. Then, you specify the value of the i_Classtype parameter as 16. However, you receive a search result that contains unexpected rows.

Notes

This problem also occurs if the following conditions are true:
  • You use the CatalogSearch class to search for a virtual catalog.
  • You query a virtual catalog that contains products from different base catalogs and the base catalogs have the same object identifier (also known as OID) value.

CAUSE

This problem occurs because of an error in the ctlg_GetSQLQuery stored procedure.

RESOLUTION

Hotfix information

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 this specific problem.

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, submit a request to 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 Web site:
http://support.microsoft.com/contactus/?ws=support
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.

Prerequisites

You must have Commerce Server 2007 Service Pack 2 (SP2) installed to apply this hotfix.

Restart requirement

You do not have to restart the computer after you apply this hotfix. 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, type the following command at a command prompt, and then press ENTER:
IISRESET /RESTART
Note This option stops and then restarts all IIS services that are running.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it 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.
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Catalogcreate.sqlNot applicable1,152,26927-Aug-200911:30Not applicable

Installation instructions

After you extract the hotfix package, you have the following files:
  • CommerceServer2007SP2-KB975116-ENU.exe
  • Ctlg_GetSQLQuery.sql
  • Hotfix.txt
Install the CommerceServer2007SP2-KB975116-ENU.exe file to update the Catalogcreate.sql file. This update ensures that this issue is not repeated for new catalog databases.

Additionally, you must run the Ctlg_GetSQLQuery.sql file against the existing catalog databases to update the stored procedure.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information about the CatalogSearch.Search method, visit the following Microsoft Developer Network Web site:
http://msdn.microsoft.com/en-us/library/ms952247.aspx

Properties

Article ID: 975116 - Last Review: October 7, 2011 - Revision: 2.0
APPLIES TO
  • Microsoft Commerce Server 2007 Developer Edition
  • Microsoft Commerce Server 2007 Enterprise Edition
  • Microsoft Commerce Server 2007 Standard Edition
Keywords: 
kbexpertiseadvanced kbsurveynew kbqfe KB975116

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com