Microsoft KB Archive/159699

= FIX: Sp_cursorfetch: No Error Reported With Incorrect Datatype =

Article ID: 159699

Article Last Modified on 10/16/2003

-

APPLIES TO


 * Microsoft SQL Server 6.0 Standard Edition
 * Microsoft SQL Server 6.5 Standard Edition

-



This article was previously published under Q159699



BUG #: 15605 (WINDOWS: 6.5)



SYMPTOMS
If a non-integer variable is used as the fetch type parameter of sp_cursorfetch, a fetch type of NEXT is assumed. An error message is not returned.



WORKAROUND
Before running sp_cursorfetch, convert the fetch type to an integer datatype, using the CONVERT function. An error will be reported if the conversion fails.



STATUS
Microsoft has confirmed this to be a problem in Microsoft SQL Server versions 6.0 and 6.5. This problem has been corrected in U.S. Service Pack 2 for Microsoft SQL Server version 6.5. For more information, contact your primary support provider.

Keywords: kbbug kbfix kbprogramming KB159699

-

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

© Microsoft Corporation. All rights reserved.