I have created a delete trigger that basically adds a row to a 'log' table. Here is the Trigger:
ALTER TRIGGER [trgPatientsForDelete] ON [dbo].[Patients]
FOR DELETE
AS
Set NoCount On
INSERT INTO Patients_Deleted ([ID],LastUpdated,LastUpdatedBy) SELECT [ID],LastUpdated,LastUpdatedBy FROM Deleted
For some reason, when I try to delete/change records in the Patients_Deleted table directly after the trigger fires, I can't. It seems like the trigger continues to maintain some sort of lock on the Patients_Delted table. The error message I get is :
'The Microsoft Jet Database Engine stopped the process b/c you and another user are attempting to change the same data at the same time'
I am doing all of this through MS Access 2000 w/ the SQL Server ODBC Driver. Note: I CAN delete/edit the records in the patients_delted table through SQL Server Enterprise Manager, but not through Access.
Any ideas will be welcomed...Thanks.
ALTER TRIGGER [trgPatientsForDelete] ON [dbo].[Patients]
FOR DELETE
AS
Set NoCount On
INSERT INTO Patients_Deleted ([ID],LastUpdated,LastUpdatedBy) SELECT [ID],LastUpdated,LastUpdatedBy FROM Deleted
For some reason, when I try to delete/change records in the Patients_Deleted table directly after the trigger fires, I can't. It seems like the trigger continues to maintain some sort of lock on the Patients_Delted table. The error message I get is :
'The Microsoft Jet Database Engine stopped the process b/c you and another user are attempting to change the same data at the same time'
I am doing all of this through MS Access 2000 w/ the SQL Server ODBC Driver. Note: I CAN delete/edit the records in the patients_delted table through SQL Server Enterprise Manager, but not through Access.
Any ideas will be welcomed...Thanks.