The information in this article applies to:
BUG# NT: 904 (4.21a) SYMPTOMS
When you try to insert a NULL into a NOT NULL column inside a trigger, an
access violation may occur under certain situations. For example, consider
the following INSERT statement to be executed inside a trigger:
The first time this trigger is fired, it causes error 515 (as expected):
If the trigger is fired again, an access violation may occur. NOTE: This problem occurs only if you are trying to insert NULLs into a column that does not allow NULLs. A trigger should not be designed to perform an invalid operation. WORKAROUND
There are two ways to avoid this problem:
STATUSMicrosoft has confirmed this to be a problem in Microsoft SQL Server version 4.21a. This problem was corrected in SQL Server version 6.0. For more information, contact your primary support provider. Additional query words: sql6 Windows NT
Keywords : kbother kbprg SSrvProg SSrvTran_SQL kbbug4.21a kbfix6.00 |
Last Reviewed: April 21, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |