Order Discount Does Not Operate When Many Discounts Are Applied (324683)



The information in this article applies to:

  • Microsoft Commerce Server 2000

This article was previously published under Q324683

SYMPTOMS

If a campaign contains more than 100 discounts, the ordering to the discounts is intermittently returned incorrectly. The ordering is not ordered by rank or campaign item ID.

CAUSE

Ordering is not operating as expected because of the underlying SQL operations.

RESOLUTION

To resolve this problem, obtain the latest service pack for Commerce Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

297216 INFO: How to Obtain the Latest Commerce Server 2000 Service Pack

The English version of this fix has the file attributes (or later) 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 tool in Control Panel.
   Date         Time   Version     Size     File name    Platform
   --------------------------------------------------------------
   18-Jun-2002  14:07  4.0.3055.0  254,224  Csfcomp.dll  I386
				

STATUS

Microsoft has confirmed that this is a problem in Commerce Server 2000. This problem was first corrected in Commerce Server 2000 Service Pack 3.

MORE INFORMATION

The problem includes the following operations:
      conn.Execute("select * into ##bar from sample order by x")

      conn.Execute("ALTER TABLE ##bar ADD idx INT IDENTITY")
				
The hotfix includes the following operations:
      conn.Execute("select *, IDENTITY(int,1,1)as idx into ##bar from sample order by x")

				
For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

273586 BUG: SELECT INTO With ORDER BY Clause Ignores Order By During the Insert


Modification Type:MinorLast Reviewed:9/27/2005
Keywords:kbHotfixServer kbQFE kbbug kbCommServ2000preSP2fix kbCommServ2000SP2fix kbfix KB324683