Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 trigger for update

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-03-23 : 08:41:48
Greg writes "I am still a little new to this, but I have a table that gets info inserted into it. I would like to have a trigger that updates another table, only for one field. It would be a bit Y or N that the record has been inserted. So, insert into one table and update one field in another. Thanks.

greg"

samsekar
Constraint Violating Yak Guru

437 Posts

Posted - 2004-03-23 : 08:51:54
Use IF UPDATE inside the body of the trigger
 
If Update([]icolumn[/i])
Begin
.
.
End


- Sekar
Go to Top of Page
   

- Advertisement -