FIX: sqlcursorfetch AVs on Select w/ "Order By," No Join (153920)
The information in this article applies to:
This article was previously published under Q153920 SYMPTOMS
The use of the FETCH operation on a cursor to select from multiple tables,
including sysobjects table, with no join and using an "order by" clause
causes a handled access violation (AV).
RESOLUTION
In most application environments, this is not a problem since the system
table sysobjects is not involved in user queries. In cases where sysobjects
is involved, avoid using extraneous tables in select statements, especially
those involving cursor operations. It is generally a sound programming
practice to include in select statements only the tables actually involved
in the statement.
STATUS
Microsoft has confirmed this to be a problem in Microsoft SQL Server
version 6.5. This problem was first corrected in Microsoft SQL Server version 6.5 Service Pack 1.
Modification Type: | Minor | Last Reviewed: | 2/14/2005 |
---|
Keywords: | kbBug kbfix KB153920 |
---|
|