Hi,I am using MS SQL Version 8.0.I have a stored procedure that actually what it does is justdelete records from a table (eg. Deal) and insert a record on a log table (eg. Archive_Log).However this table (Deal) has a trigger, everytime deleted, it will insert into another table (eg. DealHistory).here's the trigger code:SET QUOTED_IDENTIFIER ON GOSET ANSI_NULLS ON GOALTER TRIGGER trg_del_Deal ON dbo.DealFOR DELETEASBEGINSET IDENTITY_INSERT DealHistory ONINSERT INTO DealHistory ( ID, EventID, DealName, CreatedDate, LastChangedDate)SELECT del.ID, del.EventID, del.DealName, del.CreatedDate, getdate()from deleted delSET IDENTITY_INSERT CE_au_DealHistory OFFENDGOSET QUOTED_IDENTIFIER OFF GOSET ANSI_NULLS ON GO
However when executing the first stored procedure it failed and give me this error:The current user is not the database or object owner of table 'DealHistory'. Cannot perform SET operation.
Any idea how to solve this?Thanks.-sista-