Microsoft KB Archive/168085

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

Article ID: 168085

Article Last Modified on 1/4/2000

-

APPLIES TO


 * Microsoft ODBC Driver for Microsoft SQL Server 2.65

-



This article was previously published under Q168085



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: kbbug kbinterop kbprogramming KB168085

-

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

© Microsoft Corporation. All rights reserved.