FIX: Sp_cursorfetch: No Error Reported With Incorrect Datatype (159699)
The information in this article applies to:
- Microsoft SQL Server 6.0
- Microsoft SQL Server 6.5
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.
Modification Type: | Major | Last Reviewed: | 10/16/2003 |
---|
Keywords: | kbBug kbfix kbProgramming KB159699 |
---|
|