Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Difference between using "FOR" vs. "AFTER" clause in Trigger

Status
Not open for further replies.

forevertechie

Programmer
Jan 28, 2005
7
US
Hi,

Can someone explain the difference between using the "FOR" clause versus the "AFTER" clause while defining a trigger for a table?

For instance:

CREATE TRIGGER sometrig ON sometable
FOR DELETE ....

vs.

CREATE TRIGGER sometrig ON sometable
AFTER DELETE ....


Thanks,
- forevertechie
 
From BOL, Designing Triggers:

Specifying AFTER is the same as specifying FOR, which is the only option available in earlier versions of SQL Server.

--John [rainbow]
-----------------------------------
Behold! As a wild ass in the desert
go forth I to do my work.
--Gurnie Hallock (Dune)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top