Problem:
I have 2 tables: Clients and Client_Entries, They both have a field called ClientID, Here the how the tables are formed:
Clients
-------------
ClientID
Password
Name
Email
Client_Entries
-------------
ClientID
Date_Started
Description
Now what I am trying to do is when i create a new CLientID in the table "Clients" I want to be able to add an entry info "Client_Entries" with the ClientID, The date and a description saying "Project started". Any idea how I might go about doing this? Someone said to use SQL Triggers but I have no clue how to create one can someone please help me out here? I have access to the trigger properties within SQL2K, This is what I get when i open it:
--------------------------
CREATE TRIGGER [TRIGGER NAME] ON [dbo].[Clients]
For INSERT, UPDATE, DELETE
AS
--------------------------
But thats it any idea on how do to go about scripting it? I need an example! I have no clue why there is an "AS" please help me out someone thanks a lot!
Gordon R. Durgha
gd@vslink.net
I have 2 tables: Clients and Client_Entries, They both have a field called ClientID, Here the how the tables are formed:
Clients
-------------
ClientID
Password
Name
Client_Entries
-------------
ClientID
Date_Started
Description
Now what I am trying to do is when i create a new CLientID in the table "Clients" I want to be able to add an entry info "Client_Entries" with the ClientID, The date and a description saying "Project started". Any idea how I might go about doing this? Someone said to use SQL Triggers but I have no clue how to create one can someone please help me out here? I have access to the trigger properties within SQL2K, This is what I get when i open it:
--------------------------
CREATE TRIGGER [TRIGGER NAME] ON [dbo].[Clients]
For INSERT, UPDATE, DELETE
AS
--------------------------
But thats it any idea on how do to go about scripting it? I need an example! I have no clue why there is an "AS" please help me out someone thanks a lot!
Gordon R. Durgha
gd@vslink.net