Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Track Field Change SQL 2008

Avatar of bhieb
bhieb asked on
Microsoft SQL ServerMicrosoft SQL Server 2005
2 Comments1 Solution285 ViewsLast Modified:
This one should be easy. I've done a fair bit of dabbling in SQL with standard statements (select, insert...), views, and even a stored proc or 2, but now I need a bit more.

What I need is to watch a field in a table, any time that changes write an insert into another table with that effective date.

Our front office system doesn't track a Vehicle's cost center effective date, so I thought I could use a trigger to do it myself. The destination table is stupid simple 2 fields, Unit and a datetime stamp. I just have never done this before and don't know where to start.  I find database triggers under Programmability in Management studio, but when I right click I don't get an option for new.

We are on SQL 2005.
ASKER CERTIFIED SOLUTION
Avatar of Brian Crowe
Brian CroweFlag of United States of America imageDatabase Engineer
Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answers