If you run the SQL Server Version you could just create a little trigger like:
CREATE Trigger wwfUSERLOGINLOG ON tblAUTHOR FOR UPDATE AS IF (COLUMNS_UPDATED() & 26) > 0 --26th Column should be the last_visit column BEGIN Declare @username nvarchar(20) Select @username = i.username from inserted i INSERT INTO tblUSERLOG (Author, logintime) VALUES (@username ,getdate()) END
|
using a table like:
CREATE TABLE [tblUSERLOG] ( [id] [int] IDENTITY (1, 1) NOT NULL , [author] [nvarchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [logintime] [datetime] NULL , CONSTRAINT [PK_tblUSERLOG] PRIMARY KEY CLUSTERED ( [id] ) ON [PRIMARY] ) ON [PRIMARY] GO
|
no asp required.
Edited by michael