FIX: Insert from Linked-Server Into Table with BIT Field Having a DEFAULT Constraint Causes AV (240798)



The information in this article applies to:

  • Microsoft SQL Server 7.0

This article was previously published under Q240798
BUG #: 56233 (SQLBUG_70)

SYMPTOMS

Inserting a row into a local table that has a BIT column, which has a DEFAULT constraint, may cause an access violation (AV) if the following are true:
  • The inserted value comes from a linked server table.
  • There is no specified value for the BIT column, hence, the DEFAULT expects to be used.

WORKAROUND

Change the BIT column to CHAR or some other datatype that satisfies the business requirement.

STATUS

Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 2 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

254561 INF: How to Obtain Service Pack 2 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0

For more information, contact your primary support provider.

Modification Type:MajorLast Reviewed:3/14/2006
Keywords:kbBug kbfix KB240798