The information in this article applies to:
BUG #: 16712 SYMPTOMS
Using an INSERT INTO SELECT UNION statement to a table with a foreign key
constraint may cause an access violation (AV). The following script
demonstrates the problem:
On the client side, the application will receive the following error:
WORKAROUND
To work around this problem, create a temporary table to hold the result
set from the UNION statement, then INSERT INTO a target table by selecting
data from temporary table. The following script demonstrates the workaround
for the above scenario:
STATUSMicrosoft has confirmed this to be a problem in SQL Server version 6.0 and 6.5. Additional query words:
Keywords : kbusage SSrvTran_SQL kbbug6.50 kbbug6.00 |
Last Reviewed: February 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |