Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TRIGGER [dbo].[tr_Object_d] ON [dbo].[OBJECT]
FOR DELETE
AS
IF @@ROWCOUNT =0
RETURN
insert objecthist(OBJECT_ID,OBJECT_CLASS_ID,NAME,SERVER,RELATIVE_PATH,IS_LOCKED,LOCKED_BY,
HAS_INDEXES,IS_IMAGE,IS_CHARACTER,IS_FULL_TEXT_INDEXED,BATCH_NAME,CREATE_TIME,Indexed_By,Scanned_By,
DateChanged,ChangedBy,Change,INDEXED_TIME,fkImageFax,OverrideTasking)
select OBJECT_ID,OBJECT_CLASS_ID,NAME,SERVER,RELATIVE_PATH,IS_LOCKED,LOCKED_BY,HAS_INDEXES,IS_IMAGE,
IS_CHARACTER,IS_FULL_TEXT_INDEXED,BATCH_NAME,CREATE_TIME,Indexed_By,Scanned_By ,getdate(),user_name(),'D',INDEXED_TIME,fkImageFax,OverrideTasking
from deleted
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TRIGGER [dbo].[tr_Object_d] ON [dbo].[OBJECT]
AFTER DELETE
AS
IF @@ROWCOUNT =0
RETURN
insert objecthist(OBJECT_ID,OBJECT_CLASS_ID,NAME,SERVER,RELATIVE_PATH,IS_LOCKED,LOCKED_BY,
HAS_INDEXES,IS_IMAGE,IS_CHARACTER,IS_FULL_TEXT_INDEXED,BATCH_NAME,CREATE_TIME,Indexed_By,Scanned_By,
DateChanged,ChangedBy,Change,INDEXED_TIME,fkImageFax,OverrideTasking)
select OBJECT_ID,OBJECT_CLASS_ID,NAME,SERVER,RELATIVE_PATH,IS_LOCKED,LOCKED_BY,HAS_INDEXES,IS_IMAGE,
IS_CHARACTER,IS_FULL_TEXT_INDEXED,BATCH_NAME,CREATE_TIME,Indexed_By,Scanned_By ,getdate(),user_name(),'D',INDEXED_TIME,fkImageFax,OverrideTasking
from deleted
GO