Machiaveli
Programmer
Hi,
I'm having trouble with triggers, can't let it work. What i would like to works is the following.
I want to keep track of changes that users make on records. Therefore i create a trigger to 'log' the following items to the log table:
[Tablename] [varchar] (50) NOT NULL ,
[Columname] [varchar] (50) NOT NULL ,
[RecordId] [int] NOT NULL ,
[Oldvalue] [varchar] (100) NOT NULL ,
[Newvalue] [varchar] (100) NOT NULL ,
[DateChanged] [datetime] NOT NULL ,
[ChangedBy] [varchar] (50) NOT NULL
Could somebody help me on this?
I'm having trouble with triggers, can't let it work. What i would like to works is the following.
I want to keep track of changes that users make on records. Therefore i create a trigger to 'log' the following items to the log table:
[Tablename] [varchar] (50) NOT NULL ,
[Columname] [varchar] (50) NOT NULL ,
[RecordId] [int] NOT NULL ,
[Oldvalue] [varchar] (100) NOT NULL ,
[Newvalue] [varchar] (100) NOT NULL ,
[DateChanged] [datetime] NOT NULL ,
[ChangedBy] [varchar] (50) NOT NULL
Could somebody help me on this?