Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

XL2000: Cannot Derive Parameter Information When the Parameter Marker Is a Function Argument


View products that this article applies to.

Symptoms

When you query a database on SQL Server 2000, you may receive the following error message:
[Microsoft][ODBC SQL Server Driver]Unable to derive parameter information when parameter marker is a function argument
When you click OK, you may receive the following error message:
[Microsoft][ODBC SQL Server Driver]Invalid descriptor index

↑ Back to the top


Cause

This problem may occur if you query the Microsoft SQL Server 2000 database with an SQL statement that is similar to the following:
SELECT EmployeeID, FirstName, LastName, HireDate FROM Employees WHERE HireDate < dateadd(day,1,?)
Note The query parameter is an argument for a function.

↑ Back to the top


Resolution

How to Obtain the Hotfix

This issue is fixed in the Excel 2000 Post-Service Pack 3 Hotfix Package June 7, 2003. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
822611 Availability of the Excel 2000 Post-Service Pack 3 Hotfix Package: June 7, 2003
After you install this fix, follow the steps that are listed in the "More Information" section of this article to set the AllowFailParam registry key and to activate the fix.

↑ Back to the top


Status

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

↑ Back to the top


More information

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.
To activate this fix, follow these steps:
  1. Quit Excel.
  2. Click Start, and then click Run.
  3. In the Open box, type regedit, and then click OK.
  4. Locate, and then click to select the following registry key:
    HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Excel\Options
  5. With the preceding key selected, on the Edit menu, point to New, and then click AllowFailParam.
  6. Type AllowFailParam, and then press ENTER.
  7. Right-click AllowFailParam, and then click Modify.
  8. In the Value data box, type 1, and then click OK.
  9. On the File menu, click Exit to quit Registry Editor.

↑ Back to the top


Keywords: KB821789, kbfix, kbbug, kberrmsg, kbhotfixserver, kbqfe

↑ Back to the top

Article Info
Article ID : 821789
Revision : 5
Created on : 4/7/2006
Published on : 4/7/2006
Exists online : False
Views : 231