FIX: Inserting NULL into NOT NULL Column May Cause AVID: Q122574
|
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:
insert mytable select (select NULL)
Attempt to insert the value NULL into column '%.*s', table '%.*s';
column does not allow NULLS. Update fails
There are two ways to avoid this problem:
insert mytable select (NULL)
Microsoft 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
Version : 4.21 6.0
Platform : WINDOWS
Issue type :
Last Reviewed: April 21, 1999