FIX: AV Declaring a Cursor Involving Conversion to Bit (155182)



The information in this article applies to:

  • Microsoft SQL Server 6.5

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
				

Modification Type:MajorLast Reviewed:10/3/2003
Keywords:kbBug kbfix kbProgramming KB155182