FIX: AV Declaring a Cursor Involving Conversion to Bit

ID: Q155182


The information in this article applies to:


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          : kbprg SSrvProg kbbug6.50 kbfix6.50.sp2 
Version           : 6.5
Platform          : WINDOWS 
Issue type        : 

Last Reviewed: April 1, 1999