I'm sure this will be easy for some of you, but I am pretty new to the trigger/stored procedure world. I have a date field in two tables, and an employee id field in two tables. The dates are associated with a primary key of employee id. I would like to create a trigger (or stored procedure) that if the date field in table 1 is changed, it would lookup the employee id and update the date field in the table 2 - not vice versa. The date field in table 2 will be disabled through the application. In an ideal situation, there would only be one, but this is a third party application that we cannot change and we are trying to "help ourselves" not to forget to update the date field in the second table. It is a SQL 2005 database.
If this is doable, what is the best method? Trigger, stored procedure, combination of the two? I know just enough about it to be dangerous. Thanks in advance for any assistance someone may provide.
Lee
If this is doable, what is the best method? Trigger, stored procedure, combination of the two? I know just enough about it to be dangerous. Thanks in advance for any assistance someone may provide.
Lee