Microsoft KB Archive/304879

= Cannot Save Product with Non-US User Locale on the Business Desk Server =

Article ID: 304879

Article Last Modified on 10/6/2005

-

APPLIES TO


 * Microsoft Commerce Server 2000 Standard Edition

-



This article was previously published under Q304879



SYMPTOMS
When you use locale settings on the server that hosts the Commerce Server Business Desk, if the settings have a different date format than the date format configured in Microsoft SQL Server, you cannot save the product and the following error message occurs:

Script Error:

Number: 0x80040E07

Description: Source: Microsoft OLE Provider for SQL Server Description The conversion of a char data type to a datetime data type resulted in an out-of-range datetime.

This problem only occurs if a datetime property has been added to the product definition and variants are defined for the product.



CAUSE
Commerce Server creates a SQL query with the wrong date format.



RESOLUTION
A supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to computers that are experiencing this specific problem. This fix may receive additional testing. Therefore, if you are not severely affected by this problem, Microsoft recommends that you wait for the next Microsoft Commerce Server 2000 Service Pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS

NOTE: In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The typical support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The English version of this fix should have the following file attributes or later:

  Date        Time   Version       Size     File name ---  13-Sep-2001 23:02  4.0.2090.0    467,216  Catalog.dll 14-Aug-2001 03:16               164,481  Catalogupgrade.sql

After you run the HotfixSetup.exe file, run the CatalogUpgrade.sql file (included in the hotfix package) in the SQL Query Analyzer against every catalog that is already installed.



WORKAROUND
Make sure that the locale settings for the date format match the settings configured for Microsoft SQL Server.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
To verify that you are affected by this issue, use the Profiler tool that is included with Microsoft SQL Server.

Find an update query similar to the following: Update _CatalogProducts] SET [IsSearchable] = NULL,...[MyDate] = '12/30/2001' ... FROM [ _CatalogProducts] A, _CatalogHierarchy] B WHERE B.oid = 301 AND A.oid = B.child_oid

If the format of [MyDate] does not match the format configured in Microsoft SQL Server, the query will fail and result in the error described in the &quot;Symptoms&quot; section of this article.

Keywords: kbbug kbfix kbqfe kbhotfixserver KB304879

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.