I have a trigger which looks like this
CREATE TRIGGER [Processes_Trigger] ON [dbo].[Processes]
FOR INSERT, UPDATE
AS
Update Processes
Set modified_Date = GetDate(),
modified_User = (select loginame=rtrim(loginame)
from master.dbo.sysprocesses
where spid = @@spid)
but when I insert a record or update a record it updates the 2 colums great then when I close the table and open it again the 2 colums are updated in all the records. Please can you tell me what I'm doing wrong
Thanks in advance
CREATE TRIGGER [Processes_Trigger] ON [dbo].[Processes]
FOR INSERT, UPDATE
AS
Update Processes
Set modified_Date = GetDate(),
modified_User = (select loginame=rtrim(loginame)
from master.dbo.sysprocesses
where spid = @@spid)
but when I insert a record or update a record it updates the 2 colums great then when I close the table and open it again the 2 colums are updated in all the records. Please can you tell me what I'm doing wrong
Thanks in advance