BUG: AV on Cursor with Arithmetic Operation and ORDER BY Clause (177007)
The information in this article applies to:
This article was previously published under Q177007
BUG #: 16570 (NT: 6.5)
SYMPTOMS
SQL Server generates an access violation (AV) when declaring a dynamic
cursor that contains an arithmetic operation on a column that is contained
in an ORDER BY clause. The AV does not occur if the arithmetic operation is
performed on the first column in the ORDER BY clause. However, performing
the arithmetic operation on any other column position in the ORDER BY
clause does cause the AV.
WORKAROUND
To work around this problem, do either of the following:
- Switch the cursor type to keyset (SCROLL) or static (INSENSITIVE).
-or-
- Change the cursor so the column on which the arithmetic operation is
performed is the first column in the ORDER BY list.
STATUS
Microsoft has confirmed this to be a problem in SQL Server version 6.5. We
are researching this problem and will post new information here in the
Microsoft Knowledge Base as it becomes available.
Modification Type: | Major | Last Reviewed: | 10/3/2003 |
---|
Keywords: | kbBug kbSQLServ650bug kbusage KB177007 kbAudDeveloper |
---|
|