Hi,
that's something the database should do! I have written an update trigger for that on SQL Server 7.0:
Number is the primary key on the table "tableName".Code:CREATE TRIGGER [TableUpdate] ON [tableName] FOR UPDATE AS UPDATE [TableName] SET Updated = GETDATE(), Updated_From = SUSER_SNAME() WHERE Number IN (SELECT Number FROM Inserted) and Deleted is Null
Roger




Reply With Quote