FIX: INSERT Into w/ IDENTITY Col Inside Trigger Causes AVID: Q136534
|
An INSERT INTO a table with an IDENTITY column inside a trigger can cause a handled access violation (AV).
The AV occurs only if the table with an IDENTITY column has a trigger. The trigger may be fired by either an INSERT, DELETE, or UPDATE operation. The client does not cause an AV when a SELECT INTO operation is performed on a table that is not using the IDENTITY property.
If your purpose in performing an INSERT operation inside a trigger is
to implement Unique Increasing key values without using the IDENTITY
property of SQL Server version 6.0, then please refer to the following
article in the Microsoft Knowledge Base:
Q75164 : Implementing a Unique, Increasing Key Value
Microsoft has confirmed this to be a problem in Microsoft SQL Server
version 6.0. This problem was corrected in Service Pack 2 for SQL Server
version 6.0. For more information, contact your primary support provider.
Additional query words: sql6 identity primary keys
Keywords : kbprg SSrvDRI kbbug6.00 kbfix6.00.sp2
Version : 6.0
Platform : WINDOWS
Issue type :
Last Reviewed: April 16, 1999