Knowledge Base

FIX: AV Declaring a Cursor Involving Conversion to Bit

Article ID: 155182

Article Last Modified on 10/3/2003


APPLIES TO


This article was previously published under Q155182

SYMPTOMS

If you declare a non-insensitive cursor, which involves selecting a value converted to the bit datatype, a handled Access Violation occurs.

WORKAROUND

Do not convert to the bit datatype or declare the cursor as INSENSITIVE.

STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server version 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.

MORE INFORMATION

The following script can cause a handled access violation:
create table X (C1 bit not null)
go
declare X_cursor cursor for
   select convert(bit, 0) from X
go
				

Additional query words: AV SCROLL READ ONLY UPDATE OF

Keywords: kbbug kbfix kbprogramming KB155182