BUG: Single-Line Comments May Give "Wrong Number of Parameters"

ID: Q168085


The information in this article applies to:
  • Microsoft ODBC Driver for SQL Server, version 2.65

BUG #: 16859 (sqlbug_65)

SYMPTOMS

When SQL statements containing single-line ("-" styled) comments embedded with question marks are passed to the Microsoft ODBC SQL Server driver, the error message

[Microsoft][ODBC SQL Server Driver]Wrong number of parameters
may be returned.


WORKAROUND

Use the multiple-line comment style (/* */) in place of the single-line comment style (--), or remove the question marks from the comments.


STATUS

Microsoft has confirmed this to be a problem in the Microsoft ODBC SQL Server Driver version 2.65. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

Additional query words: hyphen dash

Keywords : kbinterop kbprg SSrvProg kbbug2.65
Version : WINDOWS:2.65
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: January 3, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.