I need help with a trigger that will perform an UPDATE to a table when an insert is invokede.g.CREATE TABLE [dbo].[Users_new] ( [UserIndex] int IDENTITY(1, 1) NOT NULL, [UserID] varchar(253) COLLATE Latin1_General_CI_AS NULL, [Password] varchar(129) COLLATE Latin1_General_CI_AS NULL, [PasswordDate] datetime NULL, [StartDate] datetime NULL, [UserExpiryDate] datetime NULL, [ManualExpirationDate] datetime NULL, [SuspendDate] datetime NULL, [UserActive] bit CONSTRAINT [DF__Temporary__UserA__27D8F307_Users_new] DEFAULT -1 NOT NULL, CONSTRAINT [aaaaaUsers_new_PK] PRIMARY KEY NONCLUSTERED ([UserIndex]))ON [PRIMARY]
As you can see above I want the default value of the UserActive column to changed when new a user is added.What is the correct SIMPLE trigger to use